Subversion Repositories Kolibri OS

Rev

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

Rev 4288 Rev 5565
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2010-2012. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2010-2015. 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: 4288 $
8
$Revision: 5565 $
Line 9... Line 9...
9
 
9
 
10
include 'mousepointer.inc'
10
include 'mousepointer.inc'
Line 405... Line 405...
405
        xor     eax, eax
405
        xor     eax, eax
406
        mov     [mouse.active_sys_window.new_box.top], eax
406
        mov     [mouse.active_sys_window.new_box.top], eax
407
    @@:
407
    @@:
408
        add     eax, [mouse.active_sys_window.new_box.height]
408
        add     eax, [mouse.active_sys_window.new_box.height]
409
        cmp     eax, [_display.height]
409
        cmp     eax, [_display.height]
410
        jle     .call_window_handler
410
        jl     .call_window_handler
411
        sub     eax, [_display.height]
411
        sub     eax, [_display.height]
412
        sub     [mouse.active_sys_window.new_box.top], eax
412
        sub     [mouse.active_sys_window.new_box.top], eax
413
        jmp     .call_window_handler
413
        jmp     .call_window_handler
Line 414... Line 414...
414
 
414
 
Line 484... Line 484...
484
        mov     [mouse.active_sys_window.new_box.width], eax
484
        mov     [mouse.active_sys_window.new_box.width], eax
485
    @@:
485
    @@:
486
        add     eax, [mouse.active_sys_window.new_box.left]
486
        add     eax, [mouse.active_sys_window.new_box.left]
487
        cmp     eax, [_display.width]
487
        cmp     eax, [_display.width]
488
        jl      .call_window_handler
488
        jl      .call_window_handler
489
        sub     eax, [_display.height]
489
        sub     eax, [_display.width]
490
        neg     eax
490
        neg     eax
491
        add     [mouse.active_sys_window.new_box.width], eax
491
        add     [mouse.active_sys_window.new_box.width], eax
492
        mov     ecx, [_display.height]
492
        mov     ecx, [_display.width]
493
        cmp     ecx, eax
493
        cmp     ecx, eax
494
        jg      .call_window_handler
494
        jg      .call_window_handler
495
        mov     [mouse.active_sys_window.new_box.width], ecx
495
        mov     [mouse.active_sys_window.new_box.width], ecx
Line 496... Line 496...
496
 
496
 
Line 524... Line 524...
524
;< edi = pointer to WDATA struct
524
;< edi = pointer to WDATA struct
525
;------------------------------------------------------------------------------
525
;------------------------------------------------------------------------------
526
        mov     esi, [mouse.state.pos.y]
526
        mov     esi, [mouse.state.pos.y]
527
        mov     esi, [d_width_calc_area + esi*4]
527
        mov     esi, [d_width_calc_area + esi*4]
Line 528... Line 528...
528
 
528
 
529
        add     esi, [_WinMapAddress]
529
        add     esi, [_display.win_map]
530
        add     esi, [mouse.state.pos.x]
530
        add     esi, [mouse.state.pos.x]
531
        movzx   esi, byte[esi]
531
        movzx   esi, byte[esi]
532
        mov     edi, esi
532
        mov     edi, esi
533
        shl     edi, 5
533
        shl     edi, 5