fh -> fontHeight
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24105 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -333,12 +333,11 @@ BTextControl::Draw(BRect updateRect)
|
|||||||
// label
|
// label
|
||||||
|
|
||||||
if (Label()) {
|
if (Label()) {
|
||||||
font_height fh;
|
font_height fontHeight;
|
||||||
GetFontHeight(&fh);
|
GetFontHeight(&fontHeight);
|
||||||
|
|
||||||
float y = Bounds().top
|
float y = Bounds().top + (Bounds().Height() + 1 - fontHeight.ascent
|
||||||
+ (Bounds().Height() + 1 - fh.ascent - fh.descent) / 2
|
- fontHeight.descent) / 2 + fontHeight.ascent;
|
||||||
+ fh.ascent;
|
|
||||||
float x;
|
float x;
|
||||||
|
|
||||||
float labelWidth = StringWidth(Label());
|
float labelWidth = StringWidth(Label());
|
||||||
|
|||||||
Reference in New Issue
Block a user