Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1.     if (flags & SDL_WINDOW_FULLSCREEN) {
  2.         SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
  3.         int displayIndex;
  4.         SDL_Rect bounds;
  5.  
  6.         displayIndex = SDL_GetIndexOfDisplay(display);
  7.         SDL_GetDisplayBounds(displayIndex, &bounds);
  8.  
  9.         window->x = bounds.x;
  10.         window->y = bounds.y;
  11.         window->w = bounds.w;
  12.         window->h = bounds.h;
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement