As SDL function "SDL_GetNumVideoDisplays()" seems to be broken on some
systems (tested with older Linux systems and SDL 2.0.0 and 2.0.6, but
also current macOS with SDL 2.0.20), do not use it for now to check if
the specified display number is valid.
int display_nr = atoi(option_arg);
+#if 1
+ // dirty hack: SDL_GetNumVideoDisplays() seems broken on some systems
+ options.display_nr = display_nr;
+#else
options.display_nr =
MAX(0, MIN(display_nr, SDL_GetNumVideoDisplays() - 1));
if (display_nr != options.display_nr)
Warn("invalid display %d -- using display %d",
display_nr, options.display_nr);
+#endif
}
#if defined(PLATFORM_MAC)
else if (strPrefix(option, "-psn"))