Try lroundf instead

This commit is contained in:
twinaphex 2021-08-21 19:54:39 +02:00
parent 5a65773b81
commit 0f3ae9b03d

View File

@ -6207,7 +6207,7 @@ int action_cb_push_dropdown_item_resolution(const char *path,
{
settings_t *settings = config_get_ptr();
unsigned refresh_mod = round(refreshrate / 60.0f);
unsigned refresh_mod = lroundf(refreshrate / 60.0f);
float refresh_exact = refreshrate;
/* 59 Hz is an inaccurate representation of the real value (59.94).