Wayland: Properly discover displays and their modes.
Fixes Bugzilla #2913. --HG-- extra : histedit_source : afa4cb6d068d5612aa51fd2435c385e039ba081d
This commit is contained in:
parent
fc181d4b0e
commit
984599afad
3 changed files with 74 additions and 144 deletions
|
@ -179,17 +179,6 @@ int Wayland_CreateWindow(_THIS, SDL_Window *window)
|
|||
}
|
||||
#endif /* SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH */
|
||||
|
||||
/**
|
||||
* If the user specified 0x0 as the size (turned to 1x1 by SDL_CreateWindow
|
||||
* in SDL_video.c), we want to make the window fill the whole screen
|
||||
**/
|
||||
if (window->w == 1) {
|
||||
window->w = c->screen_allocation.width;
|
||||
}
|
||||
if (window->h == 1) {
|
||||
window->h = c->screen_allocation.height;
|
||||
}
|
||||
|
||||
data->egl_window = WAYLAND_wl_egl_window_create(data->surface,
|
||||
window->w, window->h);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue