From c3c41a343669d375aaa674c7f3ac35f08f24703e Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Wed, 21 May 2008 18:12:17 +0000 Subject: [PATCH] Removed some unused code (handled in video/gl_renderer now) SVN-Revision: 5496 --- src/main.cpp | 13 ------------- 1 file changed, 13 deletions(-) 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; -- 2.11.0