summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-08-10 16:08:05 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2020-01-19 11:43:38 +0100
commit1027e80c6a6980f348df23684b859c387b52173f (patch)
tree1c9e59de298debde2be4c980da35faf64a321252
parentfb773fcc213dd3db21f941f9ff75b73bf7158fc6 (diff)
downloadskin-lcarsng-1027e80c6a6980f348df23684b859c387b52173f.tar.gz
skin-lcarsng-1027e80c6a6980f348df23684b859c387b52173f.tar.bz2
Optical changes to cLCARSNGDisplayScaled
-rw-r--r--displaymenu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/displaymenu.c b/displaymenu.c
index e450219..b86b041 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -1357,6 +1357,12 @@ void cLCARSNGDisplayMenu::Flush(void)
int xrand = (Width - xa09) / 2;
int yrand = (Height - yb15) / 2;
cRect videoWindowRect( xs00 + xrand, yrand + Gap, xs11 - xs00, yc05 - yrand / 2);
+ if (initial) {
+ if (videoScaled)
+ availableRect = cDevice::PrimaryDevice()->CanScaleVideo(videoWindowRect);
+ else
+ availableRect = cDevice::PrimaryDevice()->CanScaleVideo(cRect::Null);
+ }
DrawFrameDisplay();
switch (MenuCategory()) {
case mcMain:
@@ -1389,7 +1395,6 @@ void cLCARSNGDisplayMenu::Flush(void)
else if (cControl *Control = cControl::Control(true))
DrawPlay(Control);
if (initial) {
- availableRect = cDevice::PrimaryDevice()->CanScaleVideo(videoWindowRect);
osd->Flush();
cDevice::PrimaryDevice()->ScaleVideo(availableRect);
}
@@ -1397,7 +1402,6 @@ void cLCARSNGDisplayMenu::Flush(void)
osd->Flush();
break;
default:
- availableRect = cDevice::PrimaryDevice()->CanScaleVideo(cRect::Null);
osd->Flush();
cDevice::PrimaryDevice()->ScaleVideo(availableRect);
}