From 061bfccae6574506595a86fdd72577268b8951da Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Thu, 19 Nov 2009 01:36:30 +0000 Subject: [PATCH] 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 --- engine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine.c b/engine.c index 4357d272..5135a3d6 100644 --- a/engine.c +++ b/engine.c @@ -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,