From 27e4d459f5d4af3da5adf0c98dd3c69388e99cd6 Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 26 May 2013 11:58:11 +0200 Subject: [PATCH] Fixed position of video window --- osdmanager.c | 2 ++ 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);