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:
+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