diff --git a/rc.c b/rc.c index 263007b..7db480b 100644 --- a/rc.c +++ b/rc.c @@ -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;