summaryrefslogtreecommitdiff
path: root/displaymenuview.c
diff options
context:
space:
mode:
Diffstat (limited to 'displaymenuview.c')
-rw-r--r--displaymenuview.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/displaymenuview.c b/displaymenuview.c
index abd921c..53fe6b2 100644
--- a/displaymenuview.c
+++ b/displaymenuview.c
@@ -41,11 +41,11 @@ cNopacityDisplayMenuView::~cNopacityDisplayMenuView(void) {
#ifdef USE_YAEPG
if (config.scalePicture) {
tArea availableArea;
- availableArea.x1 = 0;
- availableArea.y1 = 0;
- availableArea.x2 = osdWidth;
- availableArea.y2 = osdHeight;
- ScalePreserveAspect(osd->vidWin, 4.0/3.0, availableArea);
+ availableArea.x1 = -osdLeft;
+ availableArea.y1 = -osdTop;
+ availableArea.x2 = osdWidth + osdLeft;
+ availableArea.y2 = osdHeight + osdTop;
+ ScalePreserveAspect(osd->vidWin, vidAspect, availableArea);
osd->vidWin.bpp = 12;
}
#endif
@@ -57,7 +57,7 @@ cOsd *cNopacityDisplayMenuView::createOsd(void) {
osdWidth = cOsd::OsdWidth();
osdHeight = cOsd::OsdHeight();
osd = CreateOsd(osdLeft, osdTop, osdWidth, osdHeight);
- cDevice::PrimaryDevice()->GetVideoSize(screenWidth, screenHeight, aspect);
+ cDevice::PrimaryDevice()->GetVideoSize(vidWidth, vidHeight, vidAspect);
return osd;
}
@@ -298,7 +298,7 @@ void cNopacityDisplayMenuView::AdjustContentBackground(bool contentNarrow, bool
availableArea.y1 = osdTop + headerHeight;
availableArea.x2 = contentWidthFull;
availableArea.y2 = availableArea.y1 + contentHeight;
- ScalePreserveAspect(osd->vidWin, aspect, availableArea);
+ ScalePreserveAspect(osd->vidWin, vidAspect, availableArea);
osd->vidWin.bpp = 12;
}
#endif
@@ -307,11 +307,11 @@ void cNopacityDisplayMenuView::AdjustContentBackground(bool contentNarrow, bool
#ifdef USE_YAEPG
if (config.scalePicture) {
tArea availableArea;
- availableArea.x1 = 0;
- availableArea.y1 = 0;
- availableArea.x2 = osdWidth;
- availableArea.y2 = osdHeight;
- ScalePreserveAspect(osd->vidWin, aspect, availableArea);
+ availableArea.x1 = -osdLeft;
+ availableArea.y1 = -osdTop;
+ availableArea.x2 = osdWidth + osdLeft;
+ availableArea.y2 = osdHeight + osdTop;
+ ScalePreserveAspect(osd->vidWin, vidAspect, availableArea);
osd->vidWin.bpp = 12;
}
#endif