#include #include "SDL/SDL.h"#include "SDL/SDL_image.h"void ShowPic(unsigned char *buf, int size, SDL_Surface *screen, int x, int y){ SDL_RWops *src; SDL_Surface *image; SDL_Rect dest; src = SDL_RWFromMem(buf, size); /* 将BMP文件加载到一个surface*/ image = IMG_Load_RW(src, 1); if ( imag.