X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fmainwin.cpp;h=1c990faec8337d5a7c038907150cbce48a524a51;hb=83fce768d2c1e0e16691c092ea02d64e2b280fad;hp=88b4d19e160e201a4e2876f8d104e480fa27ef0b;hpb=dffa89ebdee4d328a8e166b30fcdf38a3fc54b28;p=virtualjaguar diff --git a/src/gui/mainwin.cpp b/src/gui/mainwin.cpp index 88b4d19..1c990fa 100644 --- a/src/gui/mainwin.cpp +++ b/src/gui/mainwin.cpp @@ -874,12 +874,19 @@ void MainWin::SetFullScreen(bool state/*= true*/) // NOTE: Really should check here to see which dimension constrains the other. // Right now, we assume that height is the constraint. int newWidth = (int)(aspectRatio * (double)r.height()); + videoWidget->offset = (r.width() - newWidth) / 2; + videoWidget->fullscreen = true; + videoWidget->outputWidth = newWidth; - videoWidget->setFixedSize(newWidth, r.height()); +// videoWidget->setFixedSize(newWidth, r.height()); + videoWidget->setFixedSize(r.width(), r.height()); showFullScreen(); } else { + // Reset the video widget to windowed mode + videoWidget->offset = 0; + videoWidget->fullscreen = false; menuBar()->show(); statusBar()->show(); showNormal();