Subversion Repositories Kolibri OS

Rev

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

Rev 2414 Rev 2424
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2007. 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: 2414 $
8
$Revision: 2424 $
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 461... Line 461...
461
  .no_events:
461
  .no_events:
462
        xor     eax, eax
462
        xor     eax, eax
463
        ret
463
        ret
Line 464... Line 464...
464
 
464
 
465
.FlagAutoReset: ; retvals: BgrRedraw=5, Mouse=6, IPC=7, Stack=8, Debug=9
465
.FlagAutoReset: ; retvals: BgrRedraw=5, Mouse=6, IPC=7, Stack=8, Debug=9
466
;        cmp     eax, 5; Mouse 5+1=6
466
        cmp     eax, 5; Mouse 5+1=6
467
;        jne     @f
467
        jne     @f
468
;        push    eax
468
        push    eax
469
; If the window is captured and moved by the user, then no mouse events!!!
469
; If the window is captured and moved by the user, then no mouse events!!!
470
;        mov     al, [mouse.active_sys_window.action]
470
        mov     al, [mouse.active_sys_window.action]
471
;        and     al, WINDOW_MOVE_AND_RESIZE_FLAGS
471
        and     al, WINDOW_MOVE_AND_RESIZE_FLAGS
472
;        test    al, al
472
        test    al, al
473
;        pop     eax
473
        pop     eax
474
;        jnz     .loop
474
        jnz     .loop
475
;@@:
475
@@:
476
        btr     [ebx+APPDATA.event_mask], eax
476
        btr     [ebx+APPDATA.event_mask], eax
477
        jnc     .loop
477
        jnc     .loop
478
  .result:      ; retval = eax+1
478
  .result:      ; retval = eax+1
479
        inc     eax
479
        inc     eax