From df5a8f8c3ac82a7b84cccf7be3d70169d7f8ffdd Mon Sep 17 00:00:00 2001 From: klei1984 <53688147+klei1984@users.noreply.github.com> Date: Sat, 13 Jul 2024 00:59:38 +0200 Subject: [PATCH] Corrected regression in tile decoder from ff9b802. --- src/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfx.cpp b/src/gfx.cpp index 66f588d..db718b2 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -197,7 +197,7 @@ void Gfx_DecodeMapTile(const Rect* const pixel_bounds, const uint32_t tile_size, map_address_y = &map_address_y[tile_stride_x]; - for (uint32_t j{0}; j < tile_stride_y; ++j) { + for (uint32_t j{1}; j <= tile_stride_y; ++j) { for (uint32_t i{0}; i < tile_stride_x; ++i) { map_address_x[i + j * WindowManager_WindowWidth] = color_table[map_tile_buffer[(offset_x + i * map_tile_zoom_factor) >> 16]];