From da13c0c4d801c2838b18fe6492cbe4a7b576164b Mon Sep 17 00:00:00 2001 From: Teemu Hukkanen Date: Fri, 8 Feb 2013 21:12:16 +0100 Subject: [PATCH] Scale fullscreen mode based on current screen --- src/gui/mainwin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/mainwin.cpp b/src/gui/mainwin.cpp index 1dbafa0..85a94da 100644 --- a/src/gui/mainwin.cpp +++ b/src/gui/mainwin.cpp @@ -876,7 +876,8 @@ void MainWin::SetFullScreen(bool state/*= true*/) menuBar()->hide(); statusBar()->hide(); showFullScreen(); - QRect r = QApplication::desktop()->availableGeometry(); + int screenNum = QApplication::desktop()->screenNumber(videoWidget); + QRect r = QApplication::desktop()->availableGeometry(screenNum); // double targetWidth = 320.0, targetHeight = (vjs.hardwareTypeNTSC ? 240.0 : 256.0); double targetWidth = (double)VIRTUAL_SCREEN_WIDTH, targetHeight = (double)(vjs.hardwareTypeNTSC ? VIRTUAL_SCREEN_HEIGHT_NTSC : VIRTUAL_SCREEN_HEIGHT_PAL); -- 2.37.2