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

Merge pull request #502 from josephcsible/fullscreen_modes

Only consider fullscreen display modes with SDL1
This commit is contained in:
Zeno Rogue
2026-04-17 15:22:03 +02:00
committed by GitHub
+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)