mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 22:05:38 +00:00
be a bit more flexible with the display frequencies we'll match
This commit is contained in:
parent
25604512f4
commit
ad0aed42a4
|
@ -201,12 +201,14 @@ static void SetFullScreenRefreshRate()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SDL_BITSPERPIXEL(mode.format) >= 24 && mode.refresh_rate == 58 && mode.w == totalXRes && mode.h == totalYRes) {
|
if (SDL_BITSPERPIXEL(mode.format) >= 24 && mode.w == totalXRes && mode.h == totalYRes) {
|
||||||
int result = SDL_SetWindowDisplayMode(s_window, &mode);
|
if (mode.refresh_rate == 57 || mode.refresh_rate == 58) { // nvidia is fairly flexible in what refresh rate windows will show, so we can match either 57 or 58,
|
||||||
if (result == 0) {
|
int result = SDL_SetWindowDisplayMode(s_window, &mode); // both are totally non standard frequencies and shouldn't be set incorrectly
|
||||||
printf("Custom fullscreen mode set: %ix%i@57.524 Hz\n", mode.w, mode.h);
|
if (result == 0) {
|
||||||
|
printf("Custom fullscreen mode set: %ix%i@57.524 Hz\n", mode.w, mode.h);
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue