Skip to content

Commit

Permalink
bugfix: aspect ratio option was not respected in autocrop (fixes #1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Mar 7, 2024
1 parent f6ac826 commit ee41310
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/osdep/amiberry_gfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1064,8 +1064,16 @@ void auto_crop_image()
last_cy = cy;
force_auto_crop = false;

width = (cw * 2) >> currprefs.gfx_resolution;
height = (ch * 2) >> currprefs.gfx_vresolution;
if (currprefs.gfx_correct_aspect == 0)
{
width = sdl_mode.w;
height = sdl_mode.h;
}
else
{
width = (cw * 2) >> currprefs.gfx_resolution;
height = (ch * 2) >> currprefs.gfx_vresolution;
}
#ifdef USE_DISPMANX
// Still using the old approach for DMX, for now
if (height != currprefs.gfx_monitor[0].gfx_size_win.height)
Expand Down

0 comments on commit ee41310

Please sign in to comment.