mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-09 02:17:17 +02:00
Fixed checking the return values of SDL_AddBasicVideoDisplay() and SDL_AddVideoDisplay()
Also fixed Wayland and Windows usage of SDL_DelVideoDisplay() https://github.com/libsdl-org/SDL/issues/7192
This commit is contained in:
@@ -132,7 +132,7 @@ int Emscripten_VideoInit(_THIS)
|
||||
emscripten_get_screen_size(&mode.screen_w, &mode.screen_h);
|
||||
mode.display_scale = emscripten_get_device_pixel_ratio();
|
||||
|
||||
if (SDL_AddBasicVideoDisplay(&mode) < 0) {
|
||||
if (SDL_AddBasicVideoDisplay(&mode) == 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user