summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils/sdl2helper.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/utils/sdl2helper.cpp b/src/utils/sdl2helper.cpp
index 5d6fdde2b..d7df14af1 100644
--- a/src/utils/sdl2helper.cpp
+++ b/src/utils/sdl2helper.cpp
@@ -37,13 +37,12 @@ PRAGMA48(GCC diagnostic pop)
bool SDL::getAllVideoModes(StringVect &modeList)
{
std::set<std::string> modes;
-
- for (int display = 0; display < 100; display ++)
+ const int numDisplays = SDL_GetNumVideoDisplays();
+ for (int display = 0; display < numDisplays; display ++)
{
const int numModes = SDL_GetNumDisplayModes(display);
if (numModes > 0)
{
- logger->log("Modes for display %d", display);
for (int f = 0; f < numModes; f ++)
{
SDL_DisplayMode mode;