Fix UI palette remapping when pixel width > 1

Fixes bug #111
http://pulkomandy.tk/projects/GrafX2/ticket/111
This commit is contained in:
Thomas Bernard 2019-05-07 12:33:54 +02:00
parent 80dcf30ee8
commit 91e028794a
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -3748,7 +3748,7 @@ void Remap_UI_in_window_backgrounds(const byte * conversion_table)
min_x -= Window_stack[i].Pos_X;
max_x -= Window_stack[i].Pos_X;
// do the conversion
for (x = min_x; x < max_x; x++)
for (x = min_x * Pixel_width; x < max_x * Pixel_width; x++)
{
p[x] = conversion_table[p[x]];
}