diff --git a/src/SDL2/SDL_config.h b/src/SDL2/SDL_config.h index 7440940add0..3ca3d014013 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 f25a4d7e228..02eb90c78c6 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 b751a8e8fcb..277f99370bc 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 87d538980a9..c96690b3841 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 222540f50e1..13d6c305898 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 98e8740c608..36fdc115f4c 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 b523fbc36af..79378186992 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;