Navigation Menu

Skip to content

Commit

Permalink
WinRT: minor code cleanup in window-creation code
Browse files Browse the repository at this point in the history
Window flags can be detected on all WinRT platforms.
  • Loading branch information
DavidLudwig committed Nov 26, 2015
1 parent a70fe9a commit d07aa87
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/video/winrt/SDL_winrtvideo.cpp
Expand Up @@ -529,20 +529,10 @@ WINRT_CreateWindow(_THIS, SDL_Window * window)
}
#endif

#if SDL_WINRT_USE_APPLICATIONVIEW
/* Determine as many flags dynamically, as possible. */
window->flags =
SDL_WINDOW_BORDERLESS |
SDL_WINDOW_RESIZABLE;
#else
/* Set SDL_Window flags for Windows Phone 8.0 */
window->flags =
SDL_WINDOW_FULLSCREEN_DESKTOP |
SDL_WINDOW_BORDERLESS |
SDL_WINDOW_MAXIMIZED |
SDL_WINDOW_INPUT_GRABBED |
SDL_WINDOW_RESIZABLE;
#endif

#if SDL_VIDEO_OPENGL_EGL
if (data->egl_surface) {
Expand Down

0 comments on commit d07aa87

Please sign in to comment.