Make sure display representation matches all cases and recreate views on window resize(this also fixes touch control layout screen).

This commit is contained in:
LunaMoo 2015-11-13 08:50:10 +01:00 committed by Luna
parent 57c193d742
commit 0c2efa6d44
2 changed files with 25 additions and 8 deletions

View file

@ -69,6 +69,7 @@
#include "GPU/GPUInterface.h"
#include "UI/OnScreenDisplay.h"
#include "Windows/MainWindowMenu.h"
#include "UI/GameSettingsScreen.h"
#define MOUSEEVENTF_FROMTOUCH_NOPEN 0xFF515780 //http://msdn.microsoft.com/en-us/library/windows/desktop/ms703320(v=vs.85).aspx
#define MOUSEEVENTF_MASK_PLUS_PENTOUCH 0xFFFFFF80
@ -93,6 +94,7 @@ struct VerySleepy_AddrInfo {
static RECT g_normalRC = {0};
static std::wstring windowTitle;
extern InputState input_state;
extern ScreenManager *screenManager;
#define TIMER_CURSORUPDATE 1
#define TIMER_CURSORMOVEUPDATE 2
@ -281,6 +283,10 @@ namespace MainWindow
NativeMessageReceived("gpu resized", "");
}
if (screenManager) {
screenManager->RecreateAllViews();
}
// Don't save the window state if fullscreen.
if (!g_Config.bFullScreen) {
g_WindowState = newSizingType;