mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Move Presenting, Dumping and ImGui out of Renderer
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
#include <climits>
|
||||
#include <cstdio>
|
||||
|
||||
#include "VideoCommon/RenderBase.h"
|
||||
#include "VideoCommon/Present.h"
|
||||
#include "resource.h"
|
||||
|
||||
namespace
|
||||
@ -181,8 +181,8 @@ LRESULT PlatformWin32::WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
|
||||
|
||||
case WM_SIZE:
|
||||
{
|
||||
if (g_renderer)
|
||||
g_renderer->ResizeSurface();
|
||||
if (g_presenter)
|
||||
g_presenter->ResizeSurface();
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -25,7 +25,7 @@ static constexpr auto X_None = None;
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/keysym.h>
|
||||
#include "UICommon/X11Utils.h"
|
||||
#include "VideoCommon/RenderBase.h"
|
||||
#include "VideoCommon/Present.h"
|
||||
|
||||
#ifndef HOST_NAME_MAX
|
||||
#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
|
||||
@ -263,8 +263,8 @@ void PlatformX11::ProcessEvents()
|
||||
break;
|
||||
case ConfigureNotify:
|
||||
{
|
||||
if (g_renderer)
|
||||
g_renderer->ResizeSurface();
|
||||
if (g_presenter)
|
||||
g_presenter->ResizeSurface();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user