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:
@@ -78,6 +78,7 @@ private:
|
||||
|
||||
private:
|
||||
char* fText;
|
||||
float fTextWidth;
|
||||
alignment fAlign;
|
||||
BSize fPreferredSize;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user