From 8eb466e2446509ee75b6e3d348b98952f93b4a1c Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Sun, 30 Jun 2013 02:13:45 +0000 Subject: [PATCH] Box_Lib MenuBar - type 1 git-svn-id: svn://kolibrios.org@3733 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/libraries/box_lib/trunk/menubar.mac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/programs/develop/libraries/box_lib/trunk/menubar.mac b/programs/develop/libraries/box_lib/trunk/menubar.mac index 78e381c31c..cff0626e14 100644 --- a/programs/develop/libraries/box_lib/trunk/menubar.mac +++ b/programs/develop/libraries/box_lib/trunk/menubar.mac @@ -245,7 +245,6 @@ m_get_mouse_flag equ [edi+116] call .draw_1 jmp .exit_menu_1 @@: - cmp dword m_get_mouse_flag,1 mov m_get_mouse_flag,dword 0 je @f @@ -254,6 +253,15 @@ m_get_mouse_flag equ [edi+116] cmp eax,m_mouse_keys_old je .exit_menu_1 @@: + cmp dword m_type,1 + jne .start_loop + + xor eax,eax + inc eax + mov m_cursor_out,eax + mov m_click,eax + menu_bar_exit + .start_loop: mov m_select,dword 1 call .draw_1