diff options
-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);
|