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