Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

WinRT: emit SDL_WINDOWEVENT_SHOWN and SDL_WINDOWEVENT_HIDDEN

  • Loading branch information
DavidLudwig committed Jan 9, 2013
1 parent f7db6ad commit 6d5508728ac6f6ed8a09f64b4079608c1d30dcc7
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/video/windowsrt/SDL_WinRTApp.cpp
@@ -151,6 +151,13 @@ void SDL_WinRTApp::OnWindowSizeChanged(CoreWindow^ sender, WindowSizeChangedEven
void SDL_WinRTApp::OnVisibilityChanged(CoreWindow^ sender, VisibilityChangedEventArgs^ args)
{
m_windowVisible = args->Visible;
if (m_sdlWindowData) {
if (args->Visible) {
SDL_SendWindowEvent(m_sdlWindowData->sdlWindow, SDL_WINDOWEVENT_SHOWN, 0, 0);
} else {
SDL_SendWindowEvent(m_sdlWindowData->sdlWindow, SDL_WINDOWEVENT_HIDDEN, 0, 0);
}
}
}

void SDL_WinRTApp::OnWindowClosed(CoreWindow^ sender, CoreWindowEventArgs^ args)

0 comments on commit 6d55087

Please sign in to comment.