mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-25 02:09:36 +03:00
Box_Lib:
MenuBar uses memory for buffer RAW image only temporarily is now. Early the buffer is was obtained permanently at the first request and after used it is not freed. git-svn-id: svn://kolibrios.org@1597 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
a5b6b8b8e1
commit
c500a85785
@ -438,10 +438,7 @@ m_get_mouse_flag equ [edi+116]
|
||||
ret
|
||||
;---------------------------------------------------------------------
|
||||
.allocate_menu_area:
|
||||
cmp m_buf_adress,dword 0
|
||||
je @f
|
||||
call .free_menu_area
|
||||
@@:
|
||||
movzx ecx,word m_size_x1
|
||||
movzx eax,word m_size_y1
|
||||
imul ecx,eax
|
||||
@ -451,9 +448,12 @@ m_get_mouse_flag equ [edi+116]
|
||||
ret
|
||||
;---------------------------------------------------------------------
|
||||
.free_menu_area:
|
||||
cmp m_buf_adress,dword 0
|
||||
je @f
|
||||
mcall 68,13,m_buf_adress
|
||||
xor eax,eax
|
||||
mov m_buf_adress,eax
|
||||
@@:
|
||||
ret
|
||||
;---------------------------------------------------------------------
|
||||
.get_menu_area:
|
||||
@ -485,6 +485,7 @@ m_get_mouse_flag equ [edi+116]
|
||||
mov dx,m_start_y1
|
||||
|
||||
mcall 7, m_buf_adress
|
||||
call .free_menu_area
|
||||
ret
|
||||
;---------------------------------------------------------------------
|
||||
.mouse_menu:
|
||||
|
Loading…
Reference in New Issue
Block a user