X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fmainwin.cpp;h=85a94dae2e58f9029a01d6efbbafdf2f059c119c;hb=da13c0c4d801c2838b18fe6492cbe4a7b576164b;hp=1dbafa0a3975a3324c35604b2cbe13e063e31c57;hpb=de1d20fbba4c7df976cf828ded494a29c7c5b677;p=virtualjaguar 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);