mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Renderer: Pull dimensions from GLInterface/Swapchain
This commit is contained in:
parent
a3961750a7
commit
1d827a5223
7 changed files with 7 additions and 26 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue