Skip to content

Commit

Permalink
Fix handling v_scale as float to correctly apply syncrefresh.
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioginer committed Mar 30, 2023
1 parent b74328a commit 02dc53f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osd/modules/switchres/switchres_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ void switchres_module::set_options(display_manager* display, render_target *targ
// Disable -syncrefresh if our vfreq is scaled or out of syncrefresh_tolerance
if (options.autosync())
{
bool sync_refresh_effective = (options.black_frame_insertion() > 0) || !((display->is_refresh_off()) || display->v_scale() > 1);
bool sync_refresh_effective = (options.black_frame_insertion() > 0) || !((display->is_refresh_off()) || floorf(display->v_scale()) > 1.0f);
#if defined(OSD_WINDOWS)
set_option(OSDOPTION_WAITVSYNC, true);
#elif defined(OSD_SDL)
Expand Down

0 comments on commit 02dc53f

Please sign in to comment.