tags 677409 patch thanks
Am 13.06.2012 20:06, schrieb Josh Triplett:
Please fall back to an available video mode if the one remembered in the configuration file no longer works.
The attached patch should help. It's a pitty there is no API to reset certain configuration items to their hard-coded defaults in option_d[].
- Fabian
Author: Fabian Greffrath <[email protected]> Subject: Reset video mode if the one remembered in the configuration file no longer works. Bug-Debian: bugs.debian.org/cgi-bin/bugreport.cgi?bug=677409 --- a/share/video.c +++ b/share/video.c @@ -40,8 +40,12 @@ config_get_d(CONFIG_WIDTH), config_get_d(CONFIG_HEIGHT))) { - fprintf(stderr, "%s\n", SDL_GetError()); - return 0; + fprintf(stderr, "%s\nReset video mode to default\n", SDL_GetError()); + if (!video_mode(0, 800, 600)) + { + fprintf(stderr, "%s\n", SDL_GetError()); + return 0; + } } /* ...and this has to happen after it. */

