From: Tobias Markus Date: Mon, 12 May 2014 10:20:49 +0000 (+0200) Subject: Fixing a few compiler errors, thanks to bluescreen_avenger at verizon dot net X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0ed25b68b8c0258520e9dc225df432d8804cee35;p=supertux.git Fixing a few compiler errors, thanks to bluescreen_avenger at verizon dot net --- diff --git a/src/SDL2/SDL_config.h b/src/SDL2/SDL_config.h index 7440940ad..3ca3d0140 100644 --- a/src/SDL2/SDL_config.h +++ b/src/SDL2/SDL_config.h @@ -41,7 +41,7 @@ #include "SDL_config_psp.h" #else /* This is a minimal configuration just to get SDL running on new platforms */ -#include "SDL_config_minimal.h" +#include #endif /* platform config */ #ifdef USING_GENERATED_CONFIG_H diff --git a/src/gui/menu_item.cpp b/src/gui/menu_item.cpp index f25a4d7e2..02eb90c78 100644 --- a/src/gui/menu_item.cpp +++ b/src/gui/menu_item.cpp @@ -19,6 +19,7 @@ #include "supertux/resources.hpp" #include "supertux/timer.hpp" #include "video/font.hpp" +#include static const float FLICK_CURSOR_TIME = 0.5f; diff --git a/src/physfs/physfs_sdl.cpp b/src/physfs/physfs_sdl.cpp index b751a8e8f..277f99370 100644 --- a/src/physfs/physfs_sdl.cpp +++ b/src/physfs/physfs_sdl.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include "util/log.hpp" diff --git a/src/supertux/main.cpp b/src/supertux/main.cpp index 87d538980..c96690b38 100644 --- a/src/supertux/main.cpp +++ b/src/supertux/main.cpp @@ -23,6 +23,7 @@ #include #include #include +#include extern "C" { #include } diff --git a/src/supertux/menu/options_menu.cpp b/src/supertux/menu/options_menu.cpp index 222540f50..13d6c3058 100644 --- a/src/supertux/menu/options_menu.cpp +++ b/src/supertux/menu/options_menu.cpp @@ -30,6 +30,7 @@ #include #include +#include enum OptionsMenuIDs { MNID_FULLSCREEN, diff --git a/src/supertux/screen_manager.cpp b/src/supertux/screen_manager.cpp index 98e8740c6..36fdc115f 100644 --- a/src/supertux/screen_manager.cpp +++ b/src/supertux/screen_manager.cpp @@ -35,6 +35,7 @@ #include "video/drawing_context.hpp" #include "video/renderer.hpp" +#include /** ticks (as returned from SDL_GetTicks) per frame */ static const Uint32 TICKS_PER_FRAME = (Uint32) (1000.0 / LOGICAL_FPS); /** don't skip more than every 2nd frame */ diff --git a/src/video/sdl/sdl_lightmap.cpp b/src/video/sdl/sdl_lightmap.cpp index b523fbc36..793781869 100644 --- a/src/video/sdl/sdl_lightmap.cpp +++ b/src/video/sdl/sdl_lightmap.cpp @@ -31,7 +31,7 @@ SDLLightmap::SDLLightmap() : denominator(), LIGHTMAP_DIV() { - screen = SDL_GetVideoSurface(); + screen = SDL_GetWindowSurface(SDL_GetMouseFocus()); //float xfactor = 1.0f; // FIXME: (float) config->screenwidth / SCREEN_WIDTH; //float yfactor = 1.0f; // FIXME: (float) config->screenheight / SCREEN_HEIGHT;