Fix UI palette remapping when pixel width > 1
Fixes bug #111 http://pulkomandy.tk/projects/GrafX2/ticket/111
This commit is contained in:
parent
80dcf30ee8
commit
91e028794a
@ -3748,7 +3748,7 @@ void Remap_UI_in_window_backgrounds(const byte * conversion_table)
|
|||||||
min_x -= Window_stack[i].Pos_X;
|
min_x -= Window_stack[i].Pos_X;
|
||||||
max_x -= Window_stack[i].Pos_X;
|
max_x -= Window_stack[i].Pos_X;
|
||||||
// do the conversion
|
// 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]];
|
p[x] = conversion_table[p[x]];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user