Skip to content

Commit

Permalink
DMX: Fixed Width/Height and Centering would be reset to defaults, if …
Browse files Browse the repository at this point in the history
…changed when Auto-Height/Crop was enabled #929
  • Loading branch information
midwan committed Apr 10, 2022
1 parent e017a97 commit bfc8cad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/osdep/amiberry_gfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1247,12 +1247,14 @@ int check_prefs_changed_gfx()
currprefs.gfx_horizontal_offset = changed_prefs.gfx_horizontal_offset;
currprefs.gfx_vertical_offset = changed_prefs.gfx_vertical_offset;
currprefs.gfx_auto_crop = changed_prefs.gfx_auto_crop;
#if !defined USE_DISPMANX
if (currprefs.gfx_auto_crop)
{
currprefs.gfx_monitor[0].gfx_size_fs.width = changed_prefs.gfx_monitor[0].gfx_size_fs.width = currprefs.gfx_monitor[0].gfx_size_win.width = changed_prefs.gfx_monitor[0].gfx_size_win.width = currprefs.gfx_monitor[0].gfx_size.width = changed_prefs.gfx_monitor[0].gfx_size.width = 720;
currprefs.gfx_monitor[0].gfx_size_fs.height = changed_prefs.gfx_monitor[0].gfx_size_fs.height = currprefs.gfx_monitor[0].gfx_size_win.height = changed_prefs.gfx_monitor[0].gfx_size_win.height = currprefs.gfx_monitor[0].gfx_size.height = changed_prefs.gfx_monitor[0].gfx_size.height = 568;
changed_prefs.gfx_xcenter = changed_prefs.gfx_ycenter = 0;
}
#endif
currprefs.gfx_correct_aspect = changed_prefs.gfx_correct_aspect;
currprefs.scaling_method = changed_prefs.scaling_method;
#endif
Expand Down

0 comments on commit bfc8cad

Please sign in to comment.