Subversion Repositories Kolibri OS

Rev

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

Rev 3536 Rev 3558
Line 4... Line 4...
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
;;                                                              ;;
7
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
7
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 8... Line 8...
8
 
8
 
Line 9... Line 9...
9
$Revision: 3536 $
9
$Revision: 3558 $
10
 
10
 
11
;==============================================================================
11
;==============================================================================
Line 990... Line 990...
990
        test    ecx, ecx
990
        test    ecx, ecx
991
        pop     ecx
991
        pop     ecx
992
        jz      .do_not_draw
992
        jz      .do_not_draw
Line 993... Line 993...
993
 
993
 
994
        ; yes it is, activate and update screen buffer
-
 
995
        mov     byte[MOUSE_DOWN], 1
994
        ; yes it is, activate and update screen buffer
Line 996... Line 995...
996
        call    window._.window_activate
995
        call    window._.window_activate
997
 
996
 
998
        pushad
997
        pushad
Line 1023... Line 1022...
1023
align 4
1022
align 4
1024
.do_not_draw:
1023
.do_not_draw:
1025
        ; no it's not, just activate the window
1024
        ; no it's not, just activate the window
1026
        call    window._.window_activate
1025
        call    window._.window_activate
1027
        xor     eax, eax
1026
        xor     eax, eax
1028
        mov     byte[MOUSE_BACKGROUND], al
-
 
1029
        mov     byte[DONT_DRAW_MOUSE], al
-
 
1030
        dec     eax
-
 
1031
;--------------------------------------
1027
;--------------------------------------
1032
align 4
1028
align 4
1033
.exit:
1029
.exit:
1034
        mov     byte[MOUSE_DOWN], 0
-
 
1035
        inc     eax
1030
        inc     eax
1036
        ret
1031
        ret
1037
;------------------------------------------------------------------------------
1032
;------------------------------------------------------------------------------
1038
align 4
1033
align 4
1039
;------------------------------------------------------------------------------
1034
;------------------------------------------------------------------------------
Line 1182... Line 1177...
1182
        mov     edx, [edi + WDATA.box.height]
1177
        mov     edx, [edi + WDATA.box.height]
1183
        add     ecx, eax
1178
        add     ecx, eax
1184
        add     edx, ebx
1179
        add     edx, ebx
1185
        call    ebp
1180
        call    ebp
1186
        inc     [_display.mask_seqno]
1181
        inc     [_display.mask_seqno]
1187
        mov     byte[MOUSE_BACKGROUND], 0
-
 
1188
;--------------------------------------
1182
;--------------------------------------
1189
align 4
1183
align 4
1190
.exit:
1184
.exit:
1191
        popfd
1185
        popfd
1192
        popad
1186
        popad