X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsdl.c;h=66320a5b296d12265eea5b96e13c454eafae1432;hb=ddd58a300bd5996f69a8ec41d1fd140fe7a46f18;hp=a71ee30cb2069a3175bd88f60d600cd550b884b2;hpb=2c54d1765fec2db1ab23e2d5b5fba927efa463ce;p=rocksndiamonds.git diff --git a/src/libgame/sdl.c b/src/libgame/sdl.c index a71ee30c..66320a5b 100644 --- a/src/libgame/sdl.c +++ b/src/libgame/sdl.c @@ -600,7 +600,12 @@ void SDLFadeRectangle(Bitmap *bitmap_cross, int x, int y, int width, int height, } if (steps_done >= steps_final) + { + if (draw_border_function != NULL) + draw_border_function(); + SDL_UpdateRect(surface_screen, dst_x, dst_y, width, height); + } } } else @@ -1631,6 +1636,8 @@ Bitmap *SDLLoadImage(char *filename) return NULL; } + UPDATE_BUSY_STATE(); + /* create native non-transparent surface for current image */ if ((new_bitmap->surface = SDL_DisplayFormat(sdl_image_tmp)) == NULL) { @@ -1639,6 +1646,8 @@ Bitmap *SDLLoadImage(char *filename) return NULL; } + UPDATE_BUSY_STATE(); + /* create native transparent surface for current image */ SDL_SetColorKey(sdl_image_tmp, SDL_SRCCOLORKEY, SDL_MapRGB(sdl_image_tmp->format, 0x00, 0x00, 0x00)); @@ -1649,6 +1658,8 @@ Bitmap *SDLLoadImage(char *filename) return NULL; } + UPDATE_BUSY_STATE(); + /* free temporary surface */ SDL_FreeSurface(sdl_image_tmp);