Subversion Repositories Kolibri OS

Rev

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

Rev 8053 Rev 8866
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2021. All rights reserved. ;;
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
5
;; Distributed under terms of the GNU General Public License    ;;
5
;; Distributed under terms of the GNU General Public License    ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 8053 $
8
$Revision: 8866 $
9
 
9
 
10
WINDOW_MOVE_AND_RESIZE_FLAGS = \
10
WINDOW_MOVE_AND_RESIZE_FLAGS = \
11
  mouse.WINDOW_RESIZE_N_FLAG + \
11
  mouse.WINDOW_RESIZE_N_FLAG + \
Line 586... Line 586...
586
;--------------------------------------
586
;--------------------------------------
587
align 4
587
align 4
588
.Buttons:                      ; eax=2, retval Buttons=3
588
.Buttons:                      ; eax=2, retval Buttons=3
589
        cmp     byte[BTN_COUNT], 0
589
        cmp     byte[BTN_COUNT], 0
590
        je      .loop          ; empty ???
590
        je      .loop          ; empty ???
591
        cmp     edx, [TASK_COUNT]
591
        cmp     edx, [thread_count]
592
        jne     .loop          ; not Top ???
592
        jne     .loop          ; not Top ???
593
        mov     edx, [BTN_BUFF]
593
        mov     edx, [BTN_BUFF]
594
        shr     edx, 8
594
        shr     edx, 8
595
        cmp     edx, 0xFFFF    ;-ID for Minimize-Button of Form
595
        cmp     edx, 0xFFFF    ;-ID for Minimize-Button of Form
596
        jne     .result
596
        jne     .result
Line 599... Line 599...
599
        dec     byte[BTN_COUNT]
599
        dec     byte[BTN_COUNT]
600
        jmp     .loop
600
        jmp     .loop
601
;--------------------------------------
601
;--------------------------------------
602
align 4
602
align 4
603
.Keys:    ; eax==1
603
.Keys:    ; eax==1
604
        cmp     edx, [TASK_COUNT]
604
        cmp     edx, [thread_count]
605
        jne     @f             ; not Top ???
605
        jne     @f             ; not Top ???
606
        cmp     [KEY_COUNT], al; al==1
606
        cmp     [KEY_COUNT], al; al==1
607
        jae     .result        ; not empty ???
607
        jae     .result        ; not empty ???
608
;--------------------------------------
608
;--------------------------------------
609
align 4
609
align 4