Subversion Repositories Kolibri OS

Rev

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

Rev 9848 Rev 9850
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 9848 $
8
$Revision: 9850 $
9
 
9
 
10
 
10
 
Line 107... Line 107...
107
        movzx   eax, word [MOUSE_Y]
107
        movzx   eax, word [MOUSE_Y]
108
        movzx   ebx, word [MOUSE_X]
108
        movzx   ebx, word [MOUSE_X]
109
        push    eax
109
        push    eax
110
        push    ebx
110
        push    ebx
Line 111... Line -...
111
 
-
 
112
;        mov     ecx, [Screen_Max_X]
-
 
113
;        inc     ecx
-
 
114
;        mul     ecx
111
 
Line 115... Line 112...
115
        mov     eax, [d_width_calc_area + eax*4]
112
        mov     eax, [d_width_calc_area + eax*4]
116
 
113
 
117
        add     eax, [_display.win_map]
114
        add     eax, [_display.win_map]
Line 130... Line 127...
130
        movzx   eax, word [WIN_POS + eax*2]
127
        movzx   eax, word [WIN_POS + eax*2]
131
        shl     eax, BSF sizeof.APPDATA
128
        shl     eax, BSF sizeof.APPDATA
Line 132... Line 129...
132
 
129
 
133
        ; window under cursor == active window ?
130
        ; window under cursor == active window ?
134
        cmp     eax, edx
131
        cmp     eax, edx
Line -... Line 132...
-
 
132
        je      @f
135
        je      @F ; if yes then just draw cursor of app
133
 
136
 
134
        ; check whether active window is being resized now:
137
        mov     bl, [mouse.active_sys_window.action]
135
        mov     bl, [mouse.active_sys_window.action]
-
 
136
        and     bl, mouse.WINDOW_RESIZE_S_FLAG or mouse.WINDOW_RESIZE_W_FLAG or mouse.WINDOW_RESIZE_E_FLAG
138
        and     bl, mouse.WINDOW_RESIZE_S_FLAG or mouse.WINDOW_RESIZE_W_FLAG or mouse.WINDOW_RESIZE_E_FLAG
137
        test    bl, bl
-
 
138
        jz      .active_isnt_resizing
-
 
139
        mov     esi, [SLOT_BASE + eax + APPDATA.cursor] ; esi = cursor of active window, it is resizing cursor
-
 
140
        jmp     @f
-
 
141
        .active_isnt_resizing:
-
 
142
 
-
 
143
        ; if cursor of window under the cursor is resizing cursor then draw it.
-
 
144
        cmp     esi, [def_cursor_hresize]
-
 
145
        je      @f
-
 
146
        cmp     esi, [def_cursor_vresize]
-
 
147
        je      @f
-
 
148
        cmp     esi, [def_cursor_dresize1]
-
 
149
        je      @f
Line 139... Line 150...
139
        test    bl, bl
150
        cmp     esi, [def_cursor_dresize2]
140
        jz      .set_def_cursor ; if active window is not being resized now
151
        je      @f
141
 
-
 
142
        ; esi = cursor of active window:
-
 
143
        mov     esi, [SLOT_BASE + eax + APPDATA.cursor]
-
 
144
        jmp     .draw
-
 
145
 
152
 
146
.set_def_cursor:
153
        ; set cursor of window under cursor
Line 147... Line 154...
147
        mov     esi, [def_cursor]
154
        mov     esi, [SLOT_BASE + edx + APPDATA.cursor]
148
        cmp     esi, [current_cursor]
155
        cmp     esi, [current_cursor]