From 6683df3a8c1b5406ddc4609038e0d34996d1ab9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 7 Mar 2015 22:25:06 -0800 Subject: [PATCH] SDL: Fixed compile error. --- examples/common/entry/entry_sdl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/common/entry/entry_sdl.cpp b/examples/common/entry/entry_sdl.cpp index 1f7469247..8d9b5b1c6 100644 --- a/examples/common/entry/entry_sdl.cpp +++ b/examples/common/entry/entry_sdl.cpp @@ -192,7 +192,7 @@ namespace entry union { void* p; WindowHandle h; } cast; cast.h = _handle; uev.data1 = cast.p; - + uev.data2 = _msg; uev.code = _code; SDL_PushEvent(&event); @@ -619,6 +619,7 @@ namespace entry case SDL_USER_WINDOW_TOGGLE_FULL_SCREEN: { + WindowHandle handle = getWindowHandle(uev); m_fullscreen = !m_fullscreen; SDL_SetWindowFullscreen(m_window[handle.idx], m_fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0); }