diff options
author | louis <louis.braun@gmx.de> | 2013-05-26 16:54:22 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-05-26 16:54:22 +0200 |
commit | d775c945bf9312a4aa87ab6e76ba4e0e46c4d7cd (patch) | |
tree | bc514f2ed5b750ec904c09c1736efe9d483eea8a /osdmanager.c | |
parent | 4067a403db3e28afe7bcb025e03c1979d7e0026f (diff) | |
download | vdr-plugin-tvguide-d775c945bf9312a4aa87ab6e76ba4e0e46c4d7cd.tar.gz vdr-plugin-tvguide-d775c945bf9312a4aa87ab6e76ba4e0e46c4d7cd.tar.bz2 |
Fixed a bug in color display
Diffstat (limited to 'osdmanager.c')
-rw-r--r-- | osdmanager.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/osdmanager.c b/osdmanager.c index ab7eaad..9347f8c 100644 --- a/osdmanager.c +++ b/osdmanager.c @@ -38,13 +38,15 @@ bool cOsdManager::setOsd() { }
void cOsdManager::setBackground() {
+esyslog("tvguide: %d %d", Width(), Height());
+
if (tvguideConfig.displayStatusHeader && tvguideConfig.scaleVideo) {
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));
+ osd->DrawRectangle(0, tvguideConfig.statusHeaderHeight, Width(), Height(), theme.Color(clrBackgroundOSD));
}
else
- osd->DrawRectangle(0, 0, cOsd::OsdWidth(), cOsd::OsdHeight(), theme.Color(clrBackgroundOSD));
+ osd->DrawRectangle(0, 0, Width(), Height(), theme.Color(clrBackgroundOSD));
}
cPixmap *cOsdManager::requestPixmap(int Layer, const cRect &ViewPort, const cRect &DrawPort) {
|