gui/preferences: Update Display resolution list on game window resize

This fixes the window size in the dropdown menu becoming completely
out of sync as the game window gets resized by the player with the
Display section visible.
This commit is contained in:
Iris Morelle 2023-06-05 01:20:14 -04:00
parent a92ae5c86a
commit a3bbceb662
No known key found for this signature in database
GPG key ID: BB9666228F278524

View file

@ -434,6 +434,8 @@ void preferences_dialog::initialize_callbacks()
connect_signal_notify_modified(res_list,
std::bind(&preferences_dialog::handle_res_select, this));
connect_signal<event::SDL_VIDEO_RESIZE>(std::bind(&preferences_dialog::set_resolution_list, this, std::ref(res_list)));
/* PIXEL SCALE */
register_integer("pixel_scale_slider", true,
pixel_scale, set_pixel_scale);