[fix] fix height when server window is restored from collapsed state

This commit is contained in:
dijunkun
2026-01-20 23:58:43 +08:00
parent 619e54dc0e
commit ee08b231db
2 changed files with 8 additions and 0 deletions

View File

@@ -948,6 +948,12 @@ int Render::CreateMainWindow() {
main_window_height_ = (int)(main_window_height_default_ * dpi_scale_);
stream_window_width_ = (int)(stream_window_width_default_ * dpi_scale_);
stream_window_height_ = (int)(stream_window_height_default_ * dpi_scale_);
server_window_width_ = (int)(server_window_width_default_ * dpi_scale_);
server_window_height_ = (int)(server_window_height_default_ * dpi_scale_);
server_window_normal_width_ =
(int)(server_window_width_default_ * dpi_scale_);
server_window_normal_height_ =
(int)(server_window_height_default_ * dpi_scale_);
SDL_SetWindowSize(main_window_, (int)main_window_width_,
(int)main_window_height_);