summaryrefslogtreecommitdiff
path: root/noncore/games/sfcave-sdl/util.cpp
Side-by-side diff
Diffstat (limited to 'noncore/games/sfcave-sdl/util.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/games/sfcave-sdl/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/games/sfcave-sdl/util.cpp b/noncore/games/sfcave-sdl/util.cpp
index f73e256..743f16e 100644
--- a/noncore/games/sfcave-sdl/util.cpp
+++ b/noncore/games/sfcave-sdl/util.cpp
@@ -1,25 +1,25 @@
-#include "SDL.h"
+#include <SDL/SDL.h>
#include <dirent.h>
#include <vector>
using namespace std;
#include "util.h"
#include "random.h"
Uint32 getpixel(SDL_Surface *surface, int x, int y)
{
int bpp = surface->format->BytesPerPixel;
/* Here p is the address to the pixel we want to retrieve */
Uint8 *p = (Uint8 *)surface->pixels + y * surface->pitch + x * bpp;
switch(bpp) {
case 1:
return *p;
case 2:
return *(Uint16 *)p;
case 3:
if(SDL_BYTEORDER == SDL_BIG_ENDIAN)