summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/MainNoGUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
-rw-r--r--Source/Core/DolphinNoGUI/MainNoGUI.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
index 60c037e005..6447f6948b 100644
--- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp
+++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
@@ -209,9 +209,6 @@ class PlatformX11 : public Platform
void MainLoop() override
{
bool fullscreen = SConfig::GetInstance().bFullscreen;
- int last_window_width = SConfig::GetInstance().iRenderWindowWidth;
- int last_window_height = SConfig::GetInstance().iRenderWindowHeight;
-
if (fullscreen)
{
rendererIsFullscreen = X11Utils::ToggleFullscreen(dpy, win);
@@ -311,14 +308,8 @@ class PlatformX11 : public Platform
break;
case ConfigureNotify:
{
- if (last_window_width != event.xconfigure.width ||
- last_window_height != event.xconfigure.height)
- {
- last_window_width = event.xconfigure.width;
- last_window_height = event.xconfigure.height;
- if (g_renderer)
- g_renderer->ResizeSurface(last_window_width, last_window_height);
- }
+ if (g_renderer)
+ g_renderer->ResizeSurface();
}
break;
}