Subversion Repositories Kolibri OS

Rev

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

Rev 3539 Rev 3545
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2012. 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: 3539 $
8
$Revision: 3545 $
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 513... Line 513...
513
.loop: ; пока не исчерпаем все биты маски
513
.loop: ; пока не исчерпаем все биты маски
514
        bsr     eax, ecx       ; находим ненулевой бит маски (31 -> 0)
514
        bsr     eax, ecx       ; находим ненулевой бит маски (31 -> 0)
515
        jz      .no_events     ; исчерпали все биты маски, но ничего не нашли ???
515
        jz      .no_events     ; исчерпали все биты маски, но ничего не нашли ???
516
        btr     ecx, eax       ; сбрасываем проверяемый бит маски
516
        btr     ecx, eax       ; сбрасываем проверяемый бит маски
517
       ; переходим на обработчик этого (eax) бита
517
       ; переходим на обработчик этого (eax) бита
518
        cmp     eax, 9
518
        cmp     eax, 10
519
        jae     .loop          ; eax=[9..31], ignored (event 10...32)
519
        jae     .loop          ; eax=[10..31], ignored (event 10...32)
Line 520... Line 520...
520
 
520
 
521
        cmp     eax, 3
521
        cmp     eax, 3
Line 522... Line 522...
522
        je      .loop          ; eax=3, ignored (event 4)
522
        je      .loop          ; eax=3, ignored (event 4)
523
 
523
 
Line 524... Line 524...
524
        cmp     eax, 4
524
        cmp     eax, 4
525
        je      .FlagAutoReset  ; eax=4, retvals=eax+1 (event 5)
525
        je      .FlagAutoReset  ; eax=4, retvals=eax+1 (event 5)
Line 526... Line 526...
526
 
526
 
Line 527... Line 527...
527
        cmp     eax, 5
527
        cmp     eax, 5
528
        je      .mouse_check  ; eax=5, retvals=eax+1 (event 6)
528
        je      .mouse_check  ; eax=5, retvals=eax+1 (event 6)
529
 
529
 
530
        ja      .FlagAutoReset ; eax=[6..8], retvals=eax+1 (event 7...9)
530
        ja      .FlagAutoReset ; eax=[6..9], retvals=eax+1 (event 7...10)