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:
parent
a92ae5c86a
commit
a3bbceb662
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue