[fix] use SDL_RestoreWindow() to reset the window when closed during streaming

This commit is contained in:
dijunkun
2024-08-13 16:32:17 +08:00
parent 436228946b
commit d1f3d11318
2 changed files with 2 additions and 3 deletions

View File

@@ -527,8 +527,7 @@ int Render::Run() {
connection_established_ = false;
received_frame_ = false;
is_client_mode_ = false;
SDL_SetWindowSize(main_window_, main_window_width_default_,
main_window_height_default_);
SDL_RestoreWindow(main_window_);
continue;
} else {
LOG_INFO("Quit program");