1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-10 00:52:07 +00:00

Only consider fullscreen display modes with SDL1

Further improves #496 by almost entirely preventing fallback with reason
"All resolutions available".
This commit is contained in:
Joseph C. Sible
2026-02-22 23:11:33 -05:00
parent 1bd6d1c6bc
commit 6da9bb2584
+1 -1
View File
@@ -1094,7 +1094,7 @@ EX vector<int> get_display_modes(char which) {
}
#else
SDL_Rect **modes = SDL_ListModes(nullptr, 0);
SDL_Rect **modes = SDL_ListModes(nullptr, SDL_FULLSCREEN);
if(!modes)
println(hlog, "SDL_ListModes: No modes available!");
else if(modes == (SDL_Rect**)-1)