/* $Revision$ */ #include #include #include #include "sdl.h" #include "map.h" #define MAPSIZE 256 void map_show(SDL_Surface *screen, char *map, int mapsize) { int i,j; /* Lock the screen for direct access to the pixels */ if(SDL_MUSTLOCK(screen)) if(SDL_LockSurface(screen) < 0) { fprintf(stderr, "Can't lock screen: %s\n", SDL_GetError()); return; } for(i=0;i