X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_bd%2Fbd_graphics.c;h=2c0e1335ad05573c81313f83b919d223762abb08;hb=39b7d2aa3bad6aea82451547e22b7354c0328679;hp=b68459bfb2ec7e21420b93a2289e7ab48bf87931;hpb=7fb08abe58b2c84e36a5ed247d2103e08ae98aa4;p=rocksndiamonds.git diff --git a/src/game_bd/bd_graphics.c b/src/game_bd/bd_graphics.c index b68459bf..2c0e1335 100644 --- a/src/game_bd/bd_graphics.c +++ b/src/game_bd/bd_graphics.c @@ -343,12 +343,13 @@ int gd_drawcave(Bitmap *dest, GdGame *game, boolean force_redraw) int tile = game->element_buffer[y][x]; int frame = game->animcycle; struct GraphicInfo_BD *g = &graphic_info_bd_object[tile][frame]; + int width = g->width * TILESIZE_VAR / TILESIZE; + int height = g->height * TILESIZE_VAR / TILESIZE; - blit_bitmap(g->bitmap, dest, g->src_x, g->src_y, g->width, g->height, - offset.x, offset.y); + blit_bitmap(g->bitmap, dest, g->src_x, g->src_y, width, height, offset.x, offset.y); #if DO_GFX_SANITY_CHECK - if (use_native_bd_graphics_engine() && !program.headless) + if (use_native_bd_graphics_engine() && !setup.small_game_graphics && !program.headless) { int old_x = (game->gfx_buffer[y][x] % GD_NUM_OF_CELLS) % GD_NUM_OF_CELLS_X; int old_y = (game->gfx_buffer[y][x] % GD_NUM_OF_CELLS) / GD_NUM_OF_CELLS_X;