Subversion Repositories Kolibri OS

Rev

Rev 728 | Rev 2488 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 728 Rev 1754
Line 188... Line 188...
188
;           include "DEBUG.INC"
188
;           include "DEBUG.INC"
Line 189... Line 189...
189
 
189
 
190
  button:	      ; BUTTON HANDLER
190
  button:	      ; BUTTON HANDLER
191
    mov  eax, 17	 ; get id
191
    mov  eax, 17	 ; get id
192
    mcall
-
 
-
 
192
    mcall
-
 
193
                        ; dunkaist[
-
 
194
    test eax,0xfffffe00 ; is it system close button? (close signal from @panel)
-
 
195
    setz byte[close_now]; set (or not set) close_recursive flag
-
 
196
     jz  close          ; if so, close all menus
193
 
197
                        ; dunkaist]
194
  button1:
198
  button1:
195
    mov  esi, edi
199
    mov  esi, edi
196
    push edi
200
    push edi
Line 484... Line 488...
484
    cmp  [edi + cur_sel], dl
488
    cmp  [edi + cur_sel], dl
485
    jne  .nohighlight
489
    jne  .nohighlight
486
    add  esi, 0x1a1a1a
490
    add  esi, 0x1a1a1a
487
  .nohighlight:
491
  .nohighlight:
488
    or	   edx, 0x20000000
492
    or	   edx, 0x20000000
-
 
493
                                ; dunkaist[
-
 
494
    add  edx, 0xd1ff00          ; This makes first menu buttons differ from system close button with 0x000001 id
-
 
495
                                ; dunkaist]
489
    mcall
496
    mcall
490
    movzx edx, dl
497
    movzx edx, dl
Line 491... Line 498...
491
 
498
 
492
    dec  dl
499
    dec  dl