From 9af03035aa5d8b034c14793f2e34067decca9a4c Mon Sep 17 00:00:00 2001 From: Akash Date: Wed, 5 Jul 2017 19:50:45 +0530 Subject: [PATCH] PCSX2-WX: Revert titlebar update behavior on Windows Current behavior - The tilebar isn't updated when the user enters full screen mode and when the user returns back to windowed mode they have the older title bar values for a brief second, this sort of behavior is undesirable just in the cost of saving some overhead for updating title. (which is really negligent) Hence reverting the code back to how it has been for the past 7 years (Yes, I did my research), I'm doing it only for the windows side at the moment as a code comment describes of some sort of Linux specific issue on wxWidgets side. --- pcsx2/gui/FrameForGS.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcsx2/gui/FrameForGS.cpp b/pcsx2/gui/FrameForGS.cpp index f938c0095a..7a19ad57b3 100644 --- a/pcsx2/gui/FrameForGS.cpp +++ b/pcsx2/gui/FrameForGS.cpp @@ -623,9 +623,11 @@ void GSFrame::OnUpdateTitle( wxTimerEvent& evt ) out << std::fixed << std::setprecision(2) << fps; OSDmonitor(Color_StrongGreen, "FPS:", out.str()); +#ifdef __linux__ // Important Linux note: When the title is set in fullscreen the window is redrawn. Unfortunately // an intermediate white screen appears too which leads to a very annoying flickering. if (IsFullScreen()) return; +#endif AppConfig::UiTemplateOptions& templates = g_Conf->Templates;