Second fix for issue 252:Layer buttons redrawn over the tool bar when layer bar is hidden. An uninitialized variable wasn't detected and made the fix randomly successful.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1221 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
8c9321d98b
commit
061bfccae6
4
engine.c
4
engine.c
@ -223,7 +223,7 @@ void Draw_menu_button_frame(byte btn_number,byte pressed)
|
|||||||
word x_pos;
|
word x_pos;
|
||||||
word y_pos;
|
word y_pos;
|
||||||
byte current_menu;
|
byte current_menu;
|
||||||
byte visible;
|
byte visible = 0;
|
||||||
word y_off = 0;
|
word y_off = 0;
|
||||||
|
|
||||||
// Find in which menu the button is
|
// Find in which menu the button is
|
||||||
@ -328,7 +328,7 @@ void Draw_menu_button_frame(byte btn_number,byte pressed)
|
|||||||
Pixel_in_menu_and_skin(end_x,end_y-x_pos,color_bottom_right);
|
Pixel_in_menu_and_skin(end_x,end_y-x_pos,color_bottom_right);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Menu_is_visible)
|
if (Menu_is_visible && visible)
|
||||||
{
|
{
|
||||||
Update_rect(
|
Update_rect(
|
||||||
start_x*Menu_factor_X,
|
start_x*Menu_factor_X,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user