Cosmetics
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@
|
|||||||
void StaticText::paint(BitmapBuffer * dc)
|
void StaticText::paint(BitmapBuffer * dc)
|
||||||
{
|
{
|
||||||
if (windowFlags & BUTTON_BACKGROUND)
|
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)
|
if (textFlags & CENTERED)
|
||||||
dc->drawText(rect.w / 2, (1 + 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
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user