summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--displaymenu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/displaymenu.c b/displaymenu.c
index 670e5617..902ed562 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -4887,8 +4887,8 @@ int cFlatDisplayMenu::DrawMainMenuWidgetWeather(int wLeft, int wWidth, int Conte
contentWidget.AddImage(img, cRect(left, ContentTop + marginItem, fontHeight, fontHeight));
left += fontHeight - marginItem;
}
- contentWidget.AddText(*precString, false, cRect(left, ContentTop + (fontHeight/2 - fontTempSml->Height()/2), 0, 0), Theme.Color(clrMenuEventFontInfo), Theme.Color(clrMenuEventBg), fontTempSml, fontTempSml->Width("XXXX"), fontTempSml->Height(), taRight);
- left += fontTempSml->Width("XXXXX") + marginItem;
+ contentWidget.AddText(*precString, false, cRect(left, ContentTop + (fontHeight/2 - fontTempSml->Height()/2), 0, 0), Theme.Color(clrMenuEventFontInfo), Theme.Color(clrMenuEventBg), fontTempSml, fontTempSml->Width("XXX%"), fontTempSml->Height(), taRight);
+ left += fontTempSml->Width("XXXX%") + marginItem;
contentWidget.AddText(summary.c_str(), false, cRect(left, ContentTop + (fontHeight/2 - fontTempSml->Height()/2), wWidth - left, fontHeight), Theme.Color(clrMenuEventFontInfo), Theme.Color(clrMenuEventBg), fontTempSml, wWidth - left);