1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 16:54:52 +01:00

Remove some redundant casts and fix rct_sprite::AsDuck()

This commit is contained in:
Michael Steenbeek
2018-02-15 13:04:25 +01:00
committed by GitHub
parent c8c9bf70a7
commit d481cca2ed
15 changed files with 33 additions and 35 deletions

View File

@@ -700,7 +700,7 @@ void FASTCALL gfx_draw_sprite_palette_set_software(rct_drawpixelinfo *dpi, sint3
dest_start_x >>= zoom_level;
uint8* dest_pointer = (uint8*)dpi->bits;
uint8* dest_pointer = dpi->bits;
// Move the pointer to the start point of the destination
dest_pointer += ((dpi->width >> zoom_level) + dpi->pitch) * dest_start_y + dest_start_x;