Cache text width to avoid calling StringWidth() too much while

both text and font don't change.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38591 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2010-09-09 15:13:37 +00:00
parent 38c4dc0eaa
commit 7ae974066f
2 changed files with 15 additions and 8 deletions
+1
View File
@@ -78,6 +78,7 @@ private:
private:
char* fText;
float fTextWidth;
alignment fAlign;
BSize fPreferredSize;