Subversion Repositories Kolibri OS

Rev

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

Rev 9709 Rev 9910
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2021. 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: 9709 $
8
$Revision: 9910 $
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 478... Line 478...
478
        mov     ebx, [current_slot]  ;now this is a question, what where to put......
478
        mov     ebx, [current_slot]  ;now this is a question, what where to put......
479
        pushfd  ; this is a consequence of the general concept: let the test function have
479
        pushfd  ; this is a consequence of the general concept: let the test function have
480
        cli     ; the right to hope to disable interrupts, as when called from shed
480
        cli     ; the right to hope to disable interrupts, as when called from shed
481
        call    get_event_for_app
481
        call    get_event_for_app
482
        popfd
482
        popfd
483
        mov     [esp+32], eax
483
        mov     [esp + SYSCALL_STACK.eax], eax
484
        ret
484
        ret
485
;-----------------------------------------------------------------------------
485
;-----------------------------------------------------------------------------
486
align 4
486
align 4
487
sys_waitforevent:                                  ;; f10
487
sys_waitforevent:                                  ;; f10
488
        or      ebx, -1; infinite timeout
488
        or      ebx, -1; infinite timeout
Line 490... Line 490...
490
align 4
490
align 4
491
sys_wait_event_timeout:                            ;; f23
491
sys_wait_event_timeout:                            ;; f23
492
        call    unprotect_from_terminate
492
        call    unprotect_from_terminate
493
        mov     edx, get_event_for_app; wait_test
493
        mov     edx, get_event_for_app; wait_test
494
        call    Wait_events_ex        ; ebx - timeout
494
        call    Wait_events_ex        ; ebx - timeout
495
        mov     [esp+32], eax
495
        mov     [esp + SYSCALL_STACK.eax], eax
496
        call    protect_from_terminate
496
        call    protect_from_terminate
497
        ret
497
        ret
498
;-----------------------------------------------------------------------------
498
;-----------------------------------------------------------------------------
499
align 4
499
align 4
500
get_event_for_app:                                 ;; used from f10,f11,f23
500
get_event_for_app:                                 ;; used from f10,f11,f23