summaryrefslogtreecommitdiff
path: root/osdmanager.c
diff options
context:
space:
mode:
Diffstat (limited to 'osdmanager.c')
-rw-r--r--osdmanager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/osdmanager.c b/osdmanager.c
index bc9662d..5e12305 100644
--- a/osdmanager.c
+++ b/osdmanager.c
@@ -37,7 +37,8 @@ bool cOsdManager::setOsd() {
void cOsdManager::setBackground() {
if (tvguideConfig.displayStatusHeader && tvguideConfig.scaleVideo) {
- osd->DrawRectangle(0, 0, cOsd::OsdWidth() - tvguideConfig.statusHeaderHeight * 16 / 9, tvguideConfig.statusHeaderHeight, theme.Color(clrBackgroundOSD));
+ int widthStatus = cOsd::OsdWidth() - tvguideConfig.statusHeaderHeight * 16 / 9;
+ osd->DrawRectangle(0, 0, widthStatus, tvguideConfig.statusHeaderHeight, theme.Color(clrBackgroundOSD));
osd->DrawRectangle(0, tvguideConfig.statusHeaderHeight, cOsd::OsdWidth(), cOsd::OsdHeight() - tvguideConfig.statusHeaderHeight, theme.Color(clrBackgroundOSD));
}
else