Qt: Fix render window resize bug

This commit is contained in:
spycrab
2018-01-20 21:00:28 +01:00
parent 71b5519688
commit 42c562afbc
4 changed files with 17 additions and 1 deletions

View File

@ -2,12 +2,15 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "DolphinQt2/Host.h"
#include <QAbstractEventDispatcher>
#include <QApplication>
#include "Common/Common.h"
#include "Core/ConfigManager.h"
#include "Core/Host.h"
#include "DolphinQt2/Host.h"
#include "VideoCommon/RenderBase.h"
Host::Host() = default;
@ -47,6 +50,12 @@ void Host::SetRenderFullscreen(bool fullscreen)
m_render_fullscreen = fullscreen;
}
void Host::UpdateSurface()
{
if (g_renderer)
g_renderer->ChangeSurface(GetRenderHandle());
}
void Host_Message(int id)
{
if (id == WM_USER_STOP)