Trying to fix the fast fullscreen/windowed toggling

This commit is contained in:
titiger
2016-11-06 18:24:11 +01:00
parent 8d866e640e
commit 0c3c636064
2 changed files with 44 additions and 48 deletions

View File

@@ -106,6 +106,10 @@ private:
static bool isFullScreen;
static SDL_keysym keystate;
static bool tryVSynch;
static int64 lastToggle;
static void setLastToggle(int64 lastMouseEvent) {Window::lastToggle = lastToggle;}
static int64 getLastToggle() {return Window::lastToggle;}
static void setLastMouseEvent(int64 lastMouseEvent) {Window::lastMouseEvent = lastMouseEvent;}
static int64 getLastMouseEvent() {return Window::lastMouseEvent;}