Rev 9941 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9941 | Rev 10051 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Copyright (C) KolibriOS team 2010-2023. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2010-2024. 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 | - | ||
Line 8... | Line 7... | ||
8 | $Revision: 9941 $ |
7 | |
9 | 8 | ||
10 | ;================================ |
9 | ;================================ |
Line 388... | Line 387... | ||
388 | .set_resizing_cursor: |
387 | .set_resizing_cursor: |
389 | ; DEBUGF 1, ".set_resizing_cursor eax = %x\n", eax |
388 | ; DEBUGF 1, ".set_resizing_cursor eax = %x\n", eax |
390 | ; change cursor to resizing cursor |
389 | ; change cursor to resizing cursor |
391 | shl esi, BSF sizeof.WDATA |
390 | shl esi, BSF sizeof.WDATA |
392 | add esi, window_data |
391 | add esi, window_data |
393 | 392 | ||
394 | ; if resizing cursor we need (eax) isnt set already, set it |
393 | ; if resizing cursor we need (eax) isnt set already, set it |
395 | cmp eax, [esi + WDATA.cursor] |
394 | cmp eax, [esi + WDATA.cursor] |
396 | je @f |
395 | je @f |
397 | 396 | ||
398 | ; DEBUGF 1, "changing cursor to resizing\n" |
397 | ; DEBUGF 1, "changing cursor to resizing\n" |
399 | xchg eax, [esi + WDATA.cursor] ; set resizing cursor, prev cursor goes to eax |
398 | xchg eax, [esi + WDATA.cursor] ; set resizing cursor, prev cursor goes to eax |
400 | ; save previous cursor (will be restored when we'll get out of the resizing area) |
399 | ; save previous cursor (will be restored when we'll get out of the resizing area) |
401 | ; if we change resizing cursor to resizing cursor then dont update previous cursor |
400 | ; if we change resizing cursor to resizing cursor then dont update previous cursor |
402 | cmp eax, [def_cursor_hresize] |
401 | cmp eax, [def_cursor_hresize] |
Line 419... | Line 418... | ||
419 | add esi, window_data |
418 | add esi, window_data |
420 | mov eax, [esi + WDATA.temp_cursor] |
419 | mov eax, [esi + WDATA.temp_cursor] |
Line 421... | Line 420... | ||
421 | 420 | ||
422 | test eax, eax |
421 | test eax, eax |
423 | jz .end1 |
422 | jz .end1 |
424 | 423 | ||
425 | ; restore prev cursor |
424 | ; restore prev cursor |
426 | mov [esi + WDATA.temp_cursor], 0 |
425 | mov [esi + WDATA.temp_cursor], 0 |
Line 427... | Line 426... | ||
427 | mov [esi + WDATA.cursor], eax |
426 | mov [esi + WDATA.cursor], eax |