video: fix external fullscreen toggle event handling

This commit is contained in:
Andrei Alexeyev 2023-02-23 01:41:23 +01:00
parent f2e8ea7802
commit f6bf2e451b
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -692,8 +692,7 @@ static void video_handle_resize(int w, int h) {
log_debug("%ix%i --> %ix%i", video.current.width, video.current.height, w, h);
video.current.width = w;
video.current.height = h;
video_set_viewport();
events_emit(TE_VIDEO_MODE_CHANGED, 0, NULL, NULL);
video_update_mode_settings();
}
static bool video_handle_window_event(SDL_Event *event, void *arg) {