From 2a9e644b18156ca8337d4e5de3f937c275ec4ade Mon Sep 17 00:00:00 2001 From: "gregory.hainaut@gmail.com" Date: Wed, 8 Sep 2010 19:04:11 +0000 Subject: [PATCH] GregMiscellaneous: zzogl: Restore the good size when quit fullscreen. git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3743 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/zzogl-pg/opengl/GLWinX11.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/zzogl-pg/opengl/GLWinX11.cpp b/plugins/zzogl-pg/opengl/GLWinX11.cpp index dea9ffb199..0477845251 100644 --- a/plugins/zzogl-pg/opengl/GLWinX11.cpp +++ b/plugins/zzogl-pg/opengl/GLWinX11.cpp @@ -234,7 +234,11 @@ void GLWindow::ToggleFullscreen() UpdateGrabKey(); - Force43Ratio(); + // avoid black border in widescreen fullscreen + if (fullScreen && conf.isWideScreen) { + conf.width = width; + conf.height = height; + } // Hide the cursor in the right bottom corner if(fullScreen)