diff options
author | louis <louis.braun@gmx.de> | 2013-05-26 11:58:11 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-05-26 11:58:11 +0200 |
commit | 27e4d459f5d4af3da5adf0c98dd3c69388e99cd6 (patch) | |
tree | ab156d1d5929ec111659c752e6640a2c88cbbdc2 | |
parent | 812fd1b7a5aeb67d4139255a6df8230c420ea57e (diff) | |
download | vdr-plugin-tvguide-27e4d459f5d4af3da5adf0c98dd3c69388e99cd6.tar.gz vdr-plugin-tvguide-27e4d459f5d4af3da5adf0c98dd3c69388e99cd6.tar.bz2 |
Fixed position of video window
-rw-r--r-- | osdmanager.c | 2 | ||||
-rw-r--r-- | statusheader.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/osdmanager.c b/osdmanager.c index 7532380..ab7eaad 100644 --- a/osdmanager.c +++ b/osdmanager.c @@ -17,6 +17,8 @@ class cOsdManager { void deleteOsd() {delete osd;};
int Width() { return osd->Width(); };
int Height() { return osd->Height(); };
+ int Top() { return osd->Top(); };
+ int Left() { return osd->Left(); };
};
#endif //__TVGUIDE_OSDMANAGER_H
diff --git a/statusheader.c b/statusheader.c index 107cf22..39610d3 100644 --- a/statusheader.c +++ b/statusheader.c @@ -41,8 +41,8 @@ void cStatusHeader::ScaleVideo(void) { if (tvguideConfig.scaleVideo) {
int height = tvguideConfig.statusHeaderHeight;
int width = height * 16 / 9;
- int x = tvguideConfig.osdWidth - width;
- int y = 0;
+ int x = osdManager.Left() + tvguideConfig.osdWidth - width;
+ int y = osdManager.Top();
cRect availableRect(x, y, width, height);
cRect vidWin = cDevice::PrimaryDevice()->CanScaleVideo(availableRect);
cDevice::PrimaryDevice()->ScaleVideo(vidWin);
|