From 89438d86e0b356d74adbaeb3312e4b24f7472357 Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Mon, 27 Oct 2008 19:36:10 +0000 Subject: [PATCH] bugfixes --- rc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;