Subversion Repositories Kolibri OS

Rev

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

Rev 3500 Rev 3555
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: 3500 $
9
$Revision: 3555 $
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
;--------------------------------------
1027
;--------------------------------------
1031
align 4
1028
align 4
1032
.exit:
1029
.exit:
1033
        mov     byte[MOUSE_DOWN], 0
-
 
1034
        inc     eax
1030
        inc     eax
1035
        ret
1031
        ret
1036
;------------------------------------------------------------------------------
1032
;------------------------------------------------------------------------------
1037
align 4
1033
align 4
1038
;------------------------------------------------------------------------------
1034
;------------------------------------------------------------------------------
Line 1181... Line 1177...
1181
        mov     edx, [edi + WDATA.box.height]
1177
        mov     edx, [edi + WDATA.box.height]
1182
        add     ecx, eax
1178
        add     ecx, eax
1183
        add     edx, ebx
1179
        add     edx, ebx
1184
        call    ebp
1180
        call    ebp
1185
        inc     [_display.mask_seqno]
1181
        inc     [_display.mask_seqno]
1186
        mov     byte[MOUSE_BACKGROUND], 0
-
 
1187
;--------------------------------------
1182
;--------------------------------------
1188
align 4
1183
align 4
1189
.exit:
1184
.exit:
1190
        popfd
1185
        popfd
1191
        popad
1186
        popad
Line 1627... Line 1622...
1627
        or      [edi + WDATA.fl_wdrawn], 1
1622
        or      [edi + WDATA.fl_wdrawn], 1
1628
; After first draw_window we need redraw mouse necessarily!
1623
; After first draw_window we need redraw mouse necessarily!
1629
; Otherwise the user can see cursor specified by f.37.5 from another window.
1624
; Otherwise the user can see cursor specified by f.37.5 from another window.
1630
; He will be really unhappy! He is terrible in rage - usually he throws stones!
1625
; He will be really unhappy! He is terrible in rage - usually he throws stones!
1631
        mov     [redrawmouse_unconditional], 1
1626
        mov     [redrawmouse_unconditional], 1
-
 
1627
        call    wakeup_osloop
1632
        ; NOTE: commented out since doesn't provide necessary functionality
1628
        ; NOTE: commented out since doesn't provide necessary functionality
1633
        ;       anyway, to be reworked
1629
        ;       anyway, to be reworked
1634
;       mov     eax, [timer_ticks] ; [0xfdf0]
1630
;       mov     eax, [timer_ticks] ; [0xfdf0]
1635
;       add     eax, 100
1631
;       add     eax, 100
1636
;       mov     [new_window_starting], eax
1632
;       mov     [new_window_starting], eax