Cosmetics

This commit is contained in:
Bertrand Songis
2019-12-09 17:37:36 +01:00
parent 34f256839f
commit f7a6076b76
+1 -1
View File
@@ -23,7 +23,7 @@
void StaticText::paint(BitmapBuffer * dc)
{
if (windowFlags & BUTTON_BACKGROUND)
dc->drawSolidFilledRect(0, 0 + FIELD_PADDING_TOP, rect.w, rect.h, DISABLE_COLOR);
dc->drawSolidFilledRect(0, 0, rect.w, rect.h, DISABLE_COLOR);
if (textFlags & CENTERED)
dc->drawText(rect.w / 2, (1 + rect.h - getFontHeight(textFlags)) / 2, text.c_str(), textFlags);
else