Skip to content

Commit

Permalink
Corrected regression in tile decoder from ff9b802.
Browse files Browse the repository at this point in the history
  • Loading branch information
klei1984 committed Jul 12, 2024
1 parent 61808ce commit df5a8f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
Expand Down

0 comments on commit df5a8f8

Please sign in to comment.