From 60d4ba17cd7ee3cff7d7c58ada959541494bb545 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Tue, 7 Jan 2020 10:23:39 +0100 Subject: [PATCH] Static now accepts right aligned text --- radio/src/thirdparty/libopenui/src/static.cpp | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 radio/src/thirdparty/libopenui/src/static.cpp diff --git a/radio/src/thirdparty/libopenui/src/static.cpp b/radio/src/thirdparty/libopenui/src/static.cpp old mode 100644 new mode 100755 index 609be95ba..210031325 --- a/radio/src/thirdparty/libopenui/src/static.cpp +++ b/radio/src/thirdparty/libopenui/src/static.cpp @@ -26,6 +26,8 @@ void StaticText::paint(BitmapBuffer * dc) 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 if (textFlags & RIGHT) + dc->drawText(rect.w, FIELD_PADDING_TOP, text.c_str(), textFlags); else dc->drawText(0, 0 + FIELD_PADDING_TOP, text.c_str(), textFlags); }