Subversion Repositories Kolibri OS

Rev

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

Rev 1635 Rev 2434
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2008. 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: 1300 $
8
$Revision: 2434 $
9
 
9
 
10
; // Alver 22.06.2008 // {
10
; // Alver 22.06.2008 // {
11
align 4
11
align 4
Line 31... Line 31...
31
       push eax
31
        push    eax
32
        xor     eax, eax
32
        xor     eax, eax
33
.1:
33
.1:
34
; } \\ Alver \\
34
; } \\ Alver \\
35
        pushad
35
        pushad
36
        call    [_display.disable_mouse]
-
 
37
 
-
 
38
        movsx   eax, bx         ; eax=y
36
        movsx   eax, bx         ; eax=y
39
        sar     ebx, 16         ; ebx=x
37
        sar     ebx, 16         ; ebx=x
40
        xchg    eax, ebx        ; eax=x, ebx=y
38
        xchg    eax, ebx        ; eax=x, ebx=y
41
        cmp     esi, 255
39
        cmp     esi, 255
42
        jb      .loop
40
        jb      .loop
Line 69... Line 67...
69
        or      dl, 1 shl 6
67
        or      dl, 1 shl 6
70
.pixloop1:
68
.pixloop1:
71
        shr     dl, 1
69
        shr     dl, 1
72
        jz      .pixloop1end
70
        jz      .pixloop1end
73
        jnc     .nopix
71
        jnc     .nopix
-
 
72
        and     ecx, 0xFBFFFFFF  ;negate 0x04000000 save to mouseunder area
74
        call    [putpixel]
73
        call    [putpixel]
75
        jmp     .pixloop1cont
74
        jmp     .pixloop1cont
76
.nopix:
75
.nopix:
77
        test    ecx, 0x40000000
76
        test    ecx, 0x40000000
78
        jz      .pixloop1cont
77
        jz      .pixloop1cont
79
        push    ecx
78
        push    ecx
80
        mov     ecx, [esp+4+20h+20h]
79
        mov     ecx, [esp+4+20h+20h]
-
 
80
        and     ecx, 0xFBFFFFFF  ;negate 0x04000000 save to mouseunder area
81
        call    [putpixel]
81
        call    [putpixel]
82
        pop     ecx
82
        pop     ecx
83
.pixloop1cont:
83
.pixloop1cont:
84
        inc     eax
84
        inc     eax
85
        jmp     .pixloop1
85
        jmp     .pixloop1
Line 101... Line 101...
101
        mov     dl, byte [ebp]
101
        mov     dl, byte [ebp]
102
        push    esi
102
        push    esi
103
.pixloop2:
103
.pixloop2:
104
        shr     dl, 1
104
        shr     dl, 1
105
        jnc     .nopix2
105
        jnc     .nopix2
-
 
106
        and     ecx, 0xFBFFFFFF  ;negate 0x04000000 save to mouseunder area
106
        call    [putpixel]
107
        call    [putpixel]
107
        jmp     .pixloop2cont
108
        jmp     .pixloop2cont
108
.nopix2:
109
.nopix2:
109
        test    ecx, 0x40000000
110
        test    ecx, 0x40000000
110
        jz      .pixloop2cont
111
        jz      .pixloop2cont
111
        push    ecx
112
        push    ecx
112
        mov     ecx, [esp+12+20h+20h]
113
        mov     ecx, [esp+12+20h+20h]
-
 
114
        and     ecx, 0xFBFFFFFF  ;negate 0x04000000 save to mouseunder area
113
        call    [putpixel]
115
        call    [putpixel]
114
        pop     ecx
116
        pop     ecx
115
.pixloop2cont:
117
.pixloop2cont:
116
        inc     eax
118
        inc     eax
117
        dec     esi
119
        dec     esi