Cosmetics

This commit is contained in:
Bertrand Songis
2019-12-09 16:37:45 +01:00
parent 347183814e
commit 65e37af10c
+1 -1
View File
@@ -25,7 +25,7 @@ void StaticText::paint(BitmapBuffer * dc)
if (windowFlags & BUTTON_BACKGROUND)
dc->drawSolidFilledRect(0, 0 + FIELD_PADDING_TOP, rect.w, rect.h, DISABLE_COLOR);
if (textFlags & CENTERED)
dc->drawText(rect.w / 2, (rect.h - getFontHeight(textFlags)) / 2, text.c_str(), textFlags);
dc->drawText(rect.w / 2, (1 + rect.h - getFontHeight(textFlags)) / 2, text.c_str(), textFlags);
else
dc->drawText(0, 0 + FIELD_PADDING_TOP, text.c_str(), textFlags);
}