Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (flags & SDL_WINDOW_FULLSCREEN) {
- SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
- int displayIndex;
- SDL_Rect bounds;
- displayIndex = SDL_GetIndexOfDisplay(display);
- SDL_GetDisplayBounds(displayIndex, &bounds);
- window->x = bounds.x;
- window->y = bounds.y;
- window->w = bounds.w;
- window->h = bounds.h;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement