This commit is contained in:
Rob Pearce 2008-10-27 19:36:10 +00:00
parent 97c68400ea
commit 89438d86e0
1 changed files with 4 additions and 4 deletions

8
rc.c
View File

@ -3229,14 +3229,14 @@ void drawlevel(void) {
// create buffer for player background
playerbg = SDL_CreateRGBSurface(SDL_SWSURFACE,
player->img->w, player->img->h,
player->img->w+1, player->img->h+1,
screen->format->BitsPerPixel, screen->format->Rmask,
screen->format->Gmask,screen->format->Bmask,
screen->format->Amask);
SDL_DisplayFormat(playerbg);
// create buffer for cloud background
cloudbg = SDL_CreateRGBSurface(SDL_SWSURFACE,
cloud->img->w, cloud->img->h,
cloud->img->w+1, cloud->img->h+1,
screen->format->BitsPerPixel, screen->format->Rmask,
screen->format->Gmask,screen->format->Bmask,
screen->format->Amask);
@ -5769,8 +5769,8 @@ SDL_Surface *grabbehind(sprite_t *s, SDL_Surface *surf) {
// remember area behind player
area.x = s->x - s->img->w/2;
area.y = s->y - s->img->h;
area.w = s->img->w;
area.h = s->img->h;
area.w = surf->w;
area.h = surf->h;
SDL_BlitSurface(screen, &area, surf, NULL);
return surf;