diff options
author | Steve Cotton <steve@s.cotton.clara.co.uk> | 2010-02-13 12:32:28 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-13 12:39:13 +0100 |
commit | 040e336fb70e331983f9537b2d0daa2d8a962fce (patch) | |
tree | dd6f4613f6d51f7cb3eb8a716e0807424d90f4bc /po | |
parent | cfc9b326d3c2ab3ea3f4187fa55e7a5645ee7d16 (diff) | |
download | Mana-040e336fb70e331983f9537b2d0daa2d8a962fce.tar.gz Mana-040e336fb70e331983f9537b2d0daa2d8a962fce.tar.bz2 Mana-040e336fb70e331983f9537b2d0daa2d8a962fce.tar.xz Mana-040e336fb70e331983f9537b2d0daa2d8a962fce.zip |
Optimise TrueTypeFont::getWidth
Use the cache created by TTF::drawString, drops the cost of
TTF::getWidth from 5% of runtime to 0.5%.
It increases the cost of calculating line-wrapping in the BrowserBox,
but overall it's a saving, even with the BrowserBox recalculating on
every redraw.
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions