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:
Yves Rizoud 2009-11-19 01:36:30 +00:00
parent 8c9321d98b
commit 061bfccae6

View File

@ -223,7 +223,7 @@ void Draw_menu_button_frame(byte btn_number,byte pressed)
word x_pos;
word y_pos;
byte current_menu;
byte visible;
byte visible = 0;
word y_off = 0;
// 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);
}
}
if (Menu_is_visible)
if (Menu_is_visible && visible)
{
Update_rect(
start_x*Menu_factor_X,