code_junkie

Maximize SDL window

Nov 12th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. SDL_SysWMinfo info;
  2. SDL_VERSION(&info.version);
  3. SDL_GetWMInfo(&info);
  4. ShowWindow(info.window, SW_MAXIMIZE);
  5.  
  6. flags |= SDL_FULLSCREEN;
  7. screen = SDL_SetVideoMode(..., flags);
Add Comment
Please, Sign In to add comment