Subversion Repositories Kolibri OS

Rev

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

Rev 2465 Rev 3555
Line 9... Line 9...
9
;;                                                              ;;
9
;;                                                              ;;
10
;;  Paul Butcher, paul.butcher@asa.co.uk                        ;;
10
;;  Paul Butcher, paul.butcher@asa.co.uk                        ;;
11
;;                                                              ;;
11
;;                                                              ;;
12
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 13... Line 13...
13
 
13
 
Line 14... Line 14...
14
$Revision: 2465 $
14
$Revision: 3555 $
15
 
15
 
16
;------------------------------------------------------------------------------
16
;------------------------------------------------------------------------------
Line 148... Line 148...
148
     .cx dd 0
148
     .cx dd 0
149
endg
149
endg
150
;------------------------------------------------------------------------------
150
;------------------------------------------------------------------------------
151
align 4
151
align 4
152
checkVga_N13:
152
checkVga_N13:
153
        cmp     [SCR_MODE], dword 0x13
153
        cmp     [SCR_MODE], 0x13
154
        jne     @f
154
        jne     @f
Line 155... Line 155...
155
 
155
 
156
        pushad
156
        pushad
157
        cmp     [EGA_counter], 1
157
        cmp     [EGA_counter], 1
Line 401... Line 401...
401
        pop     ecx
401
        pop     ecx
402
;--------------------------------------
402
;--------------------------------------
403
align 4
403
align 4
404
.no_mouseunder:
404
.no_mouseunder:
405
        shl     ebx, 9
405
        shl     ebx, 9
406
        lea     ebx, [ebx+ebx*4]   ; óìíîæåíèå íà 5
406
        lea     ebx, [ebx+ebx*4]   ; умножение на 5
407
        lea     edx, [ebx+ecx*4]  ; + x*BytesPerPixel (Vesa2.0 32)
407
        lea     edx, [ebx+ecx*4]  ; + x*BytesPerPixel (Vesa2.0 32)
408
        mov     edi, edx
408
        mov     edi, edx
409
        add     edi, [LFBAddress]     ; + LFB address
409
        add     edi, [LFBAddress]     ; + LFB address
410
        mov     [edi], eax        ; write to LFB for Vesa2.0
410
        mov     [edi], eax        ; write to LFB for Vesa2.0
411
        shr     edx, 5            ; change BytesPerPixel to 1/8
411
        shr     edx, 5            ; change BytesPerPixel to 1/8
Line 499... Line 499...
499
        add     ebx, [eax-twdw + 4]
499
        add     ebx, [eax-twdw + 4]
500
        mov     eax, [eax-twdw + 0]
500
        mov     eax, [eax-twdw + 0]
501
        add     eax, [temp.cx]
501
        add     eax, [temp.cx]
502
        and     eax, 0xfff8
502
        and     eax, 0xfff8
503
        shl     ebx, 9
503
        shl     ebx, 9
504
        lea     ebx, [ebx+ebx*4]; óìíîæåíèå íà 5
504
        lea     ebx, [ebx+ebx*4]; умножение на 5
505
        lea     ebx, [ebx+eax*4]  ; + x*BytesPerPixel (Vesa2.0 32)
505
        lea     ebx, [ebx+eax*4]  ; + x*BytesPerPixel (Vesa2.0 32)
506
        mov     esi, ebx
506
        mov     esi, ebx
507
        add     esi, [LFBAddress]     ; + LFB address
507
        add     esi, [LFBAddress]     ; + LFB address
508
        shr     ebx, 5            ; change BytesPerPixel to 1/8
508
        shr     ebx, 5            ; change BytesPerPixel to 1/8
509
        mov     edi, ebx
509
        mov     edi, ebx