mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-26 10:06:42 +08:00
emscripten: Don't flag window fullscreen on external requests
Also, the condition was always true.
This commit is contained in:
committed by
Charlie Birks
parent
55af8dcad9
commit
454943cf3e
@@ -607,9 +607,6 @@ Emscripten_HandleFullscreenChange(int eventType, const EmscriptenFullscreenChang
|
|||||||
window_data->window->flags |= window_data->requested_fullscreen_mode;
|
window_data->window->flags |= window_data->requested_fullscreen_mode;
|
||||||
|
|
||||||
window_data->requested_fullscreen_mode = 0;
|
window_data->requested_fullscreen_mode = 0;
|
||||||
|
|
||||||
if(!window_data->requested_fullscreen_mode)
|
|
||||||
window_data->window->flags |= SDL_WINDOW_FULLSCREEN; /*we didn't request fullscreen*/
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user