From 58f32a0afd0d3ccae26ed66d8a2cab2aa37d98f1 Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 1 Jun 2020 21:15:25 +0100 Subject: [PATCH] Make use of gfx_sprite_to_buffer --- src/openrct2/drawing/Drawing.Sprite.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/openrct2/drawing/Drawing.Sprite.cpp b/src/openrct2/drawing/Drawing.Sprite.cpp index 7d8410a65f..072421964c 100644 --- a/src/openrct2/drawing/Drawing.Sprite.cpp +++ b/src/openrct2/drawing/Drawing.Sprite.cpp @@ -568,19 +568,8 @@ void FASTCALL gfx_draw_sprite_palette_set_software( // Move the pointer to the start point of the destination dest_pointer += ((dpi->width / zoom_level) + dpi->pitch) * dest_start_y + dest_start_x; - if (g1->flags & G1_FLAG_RLE_COMPRESSION) - { - // We have to use a different method to move the source pointer for - // rle encoded sprites so that will be handled within this function - DrawSpriteArgs args(dpi, imageId, paletteMap, *g1, source_start_x, source_start_y, width, height, dest_pointer); - gfx_rle_sprite_to_buffer(args); - return; - } - else if (!(g1->flags & G1_FLAG_1)) - { - DrawSpriteArgs args(dpi, imageId, paletteMap, *g1, source_start_x, source_start_y, width, height, dest_pointer); - gfx_bmp_sprite_to_buffer(args); - } + DrawSpriteArgs args(dpi, imageId, paletteMap, *g1, source_start_x, source_start_y, width, height, dest_pointer); + gfx_sprite_to_buffer(args); } void FASTCALL gfx_sprite_to_buffer(DrawSpriteArgs& args)