From: Ingo Ruhnke Date: Wed, 21 May 2008 18:12:17 +0000 (+0000) Subject: Removed some unused code (handled in video/gl_renderer now) X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c3c41a343669d375aaa674c7f3ac35f08f24703e;p=supertux.git Removed some unused code (handled in video/gl_renderer now) SVN-Revision: 5496 --- diff --git a/src/main.cpp b/src/main.cpp index 0b269b7ee..96e51e4b9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -399,19 +399,6 @@ static void init_rand() void init_video() { - static int desktop_width = 0; - static int desktop_height = 0; - -/* unfortunately only newer SDLs have these infos */ -#if SDL_MAJOR_VERSION > 1 || SDL_MINOR_VERSION > 2 || (SDL_MINOR_VERSION == 2 && SDL_PATCHLEVEL >= 10) - /* find which resolution the user normally uses */ - if(desktop_width == 0) { - const SDL_VideoInfo *info = SDL_GetVideoInfo(); - desktop_width = info->current_w; - desktop_height = info->current_h; - } -#endif - // FIXME: Add something here SCREEN_WIDTH = 800; SCREEN_HEIGHT = 600;