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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user