From 204ff2365f846eadee46247cee8141e328eef279 Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 24 Mar 2016 14:47:03 -0500 Subject: [PATCH] I think the 1px padding hack (enabled by default) should have only applied to opengl (it was created when we only had opengl and it's meant to address a problem i think is opengl only). May possibly cause flickering when going fullscreen, if I'm wrong. --- BizHawk.Client.EmuHawk/MainForm.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs index e4a81cec06..06ba27bbe3 100644 --- a/BizHawk.Client.EmuHawk/MainForm.cs +++ b/BizHawk.Client.EmuHawk/MainForm.cs @@ -1066,13 +1066,16 @@ namespace BizHawk.Client.EmuHawk //(this could be determined with more work; other side affects of the fullscreen mode include: corrupted taskbar, no modal boxes on top of GL control, no screenshots) //At any rate, we can solve this by adding a 1px black border around the GL control //Please note: It is important to do this before resizing things, otherwise momentarily a GL control without WS_BORDER will be at the magic dimensions and cause the flakeout - if (Global.Config.DispFullscreenHacks) + if (Global.Config.DispFullscreenHacks && Global.Config.DispMethod == Config.EDispMethod.OpenGL) { //ATTENTION: this causes the statusbar to not work well, since the backcolor is now set to black instead of SystemColors.Control. //It seems that some statusbar elements composite with the backcolor. //Maybe we could add another control under the statusbar. with a different backcolor Padding = new Padding(1); BackColor = Color.Black; + + //FUTURE WORK: + //re-add this padding back into the display manager (so the image will get cut off a little but, but a few more resolutions will fully fit into the screen) } #endif