Merge pull request #7659 from fr500/upstream

only apply fixed window size when the setting is enabled
This commit is contained in:
Twinaphex 2018-11-27 07:50:35 +01:00 committed by GitHub
commit 1acad3522e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -986,7 +986,8 @@ static bool video_driver_init_internal(bool *video_is_threaded)
else else
{ {
/* To-Do: remove when the new window resizing core is hooked */ /* To-Do: remove when the new window resizing core is hooked */
if (settings->uints.window_position_width || settings->uints.window_position_height) if (settings->bools.video_window_save_positions &&
(settings->uints.window_position_width || settings->uints.window_position_height))
{ {
width = settings->uints.window_position_width; width = settings->uints.window_position_width;
height = settings->uints.window_position_height; height = settings->uints.window_position_height;