Fix an incomplete screen update when you click the top of a button (pressed state), was only visible on toolbar Anim (when menu ratio is x2 or x3) or layers/status (when menu ratio is x3).

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1996 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2012-09-18 21:04:55 +00:00
parent 48bb895147
commit fdedfd628b

View File

@ -275,7 +275,7 @@ void Draw_menu_button(byte btn_number,byte pressed)
if (Menu_is_visible && Menu_bars[current_menu].Visible)
Update_rect(Menu_factor_X*(Buttons_Pool[btn_number].X_offset),
(Buttons_Pool[btn_number].Y_offset+Menu_bars[MENUBAR_TOOLS].Top)*Menu_factor_Y+Menu_Y,
(Buttons_Pool[btn_number].Y_offset+Menu_bars[current_menu].Top)*Menu_factor_Y+Menu_Y,
width*Menu_factor_X,height*Menu_factor_Y);
/*