diff options
| author | Stenzek <stenzek@gmail.com> | 2018-10-03 23:03:16 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2018-10-20 21:11:34 +1000 |
| commit | 1d827a52234974f308e71e86cdd6f61293e0523f (patch) | |
| tree | 18ba10ba003f9316c79caf062972c91c149299be /Source/Core/DolphinNoGUI/MainNoGUI.cpp | |
| parent | a3961750a7174be7402fc492367f017d845b8e1f (diff) | |
Renderer: Pull dimensions from GLInterface/Swapchain
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
| -rw-r--r-- | Source/Core/DolphinNoGUI/MainNoGUI.cpp | 13 |
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; } |
