From 1027e80c6a6980f348df23684b859c387b52173f Mon Sep 17 00:00:00 2001 From: kamel5 Date: Sat, 10 Aug 2019 16:08:05 +0200 Subject: Optical changes to cLCARSNGDisplayScaled --- displaymenu.c | 8 ++++++-- 1 file 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); } -- cgit v1.2.3