Moved skin preview to the Gfx struct so it is not overwritten if you cancel skin loading.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1115 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
10
buttons.c
10
buttons.c
@@ -1111,7 +1111,7 @@ void Button_Skins(void)
|
||||
|
||||
for (y = 14, offs_y = 0; offs_y < 16; offs_y++, y++)
|
||||
for (x = 6, x_pos = 0; x_pos<173; x_pos++, x++)
|
||||
Pixel_in_window(x, y, skin_logo[offs_y][x_pos]);
|
||||
Pixel_in_window(x, y, Gfx->preview[offs_y][x_pos]);
|
||||
|
||||
Update_window_area(0, 0, Window_width, Window_height);
|
||||
|
||||
@@ -1153,13 +1153,13 @@ void Button_Skins(void)
|
||||
for (y = 14, offs_y = 0; offs_y < 16; offs_y++, y++)
|
||||
for (x = 6, x_pos = 0; x_pos<173; x_pos++, x++)
|
||||
{
|
||||
if (skin_logo[offs_y][x_pos] == MC_Black)
|
||||
if (gfx->preview[offs_y][x_pos] == MC_Black)
|
||||
Pixel_in_window(x, y, Old_black);
|
||||
else if (skin_logo[offs_y][x_pos] == MC_Dark)
|
||||
else if (gfx->preview[offs_y][x_pos] == MC_Dark)
|
||||
Pixel_in_window(x, y, Old_dark);
|
||||
else if (skin_logo[offs_y][x_pos] == MC_Light)
|
||||
else if (gfx->preview[offs_y][x_pos] == MC_Light)
|
||||
Pixel_in_window(x, y, Old_light);
|
||||
else if (skin_logo[offs_y][x_pos] == MC_White)
|
||||
else if (gfx->preview[offs_y][x_pos] == MC_White)
|
||||
Pixel_in_window(x, y, Old_white);
|
||||
}
|
||||
Update_window_area(4, 14, 174, 16);
|
||||
|
||||
Reference in New Issue
Block a user