Skip to content

Commit

Permalink
Fixing a few compiler errors, thanks to bluescreen_avenger at verizon…
Browse files Browse the repository at this point in the history
… dot net
  • Loading branch information
tobbi committed May 12, 2014
1 parent 2277b7d commit 0ed25b6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SDL2/SDL_config.h
Expand Up @@ -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 <SDL2/SDL_config_minimal.h>
#endif /* platform config */

#ifdef USING_GENERATED_CONFIG_H
Expand Down
1 change: 1 addition & 0 deletions src/gui/menu_item.cpp
Expand Up @@ -19,6 +19,7 @@
#include "supertux/resources.hpp"
#include "supertux/timer.hpp"
#include "video/font.hpp"
#include <stdio.h>

static const float FLICK_CURSOR_TIME = 0.5f;

Expand Down
1 change: 1 addition & 0 deletions src/physfs/physfs_sdl.cpp
Expand Up @@ -20,6 +20,7 @@
#include <sstream>
#include <stdexcept>
#include <assert.h>
#include <stdio.h>

#include "util/log.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/supertux/main.cpp
Expand Up @@ -23,6 +23,7 @@
#include <binreloc.h>
#include <tinygettext/log.hpp>
#include <boost/format.hpp>
#include <stdio.h>
extern "C" {
#include <findlocale.h>
}
Expand Down
1 change: 1 addition & 0 deletions src/supertux/menu/options_menu.cpp
Expand Up @@ -30,6 +30,7 @@

#include <algorithm>
#include <sstream>
#include <stdio.h>

enum OptionsMenuIDs {
MNID_FULLSCREEN,
Expand Down
1 change: 1 addition & 0 deletions src/supertux/screen_manager.cpp
Expand Up @@ -35,6 +35,7 @@
#include "video/drawing_context.hpp"
#include "video/renderer.hpp"

#include <stdio.h>
/** 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 */
Expand Down
2 changes: 1 addition & 1 deletion src/video/sdl/sdl_lightmap.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 0ed25b6

Please sign in to comment.