From 65e37af10cab7148afdb25ca0d8320f7531881d4 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Mon, 9 Dec 2019 16:37:45 +0100 Subject: [PATCH] Cosmetics --- radio/src/thirdparty/libopenui/src/static.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/thirdparty/libopenui/src/static.cpp b/radio/src/thirdparty/libopenui/src/static.cpp index 5b2850333..e4bb0685a 100644 --- a/radio/src/thirdparty/libopenui/src/static.cpp +++ b/radio/src/thirdparty/libopenui/src/static.cpp @@ -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); }