Subversion Repositories Kolibri OS

Rev

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

Rev 5161 Rev 5164
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2011-2014. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2011-2014. 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: 5161 $
8
$Revision: 5164 $
9
 
9
 
10
 
10
 
Line 452... Line 452...
452
 
452
 
453
        pop     eax
453
        pop     eax
454
;--------------------------------------
454
;--------------------------------------
455
align 4
455
align 4
456
.skip_1:
-
 
457
        mov     edi, [esp+.extra_var1]
456
.skip_1:
458
        inc     ecx
457
        inc     ecx
459
        dec     edx
458
        dec     edx
Line 460... Line 459...
460
        jnz     .inner24
459
        jnz     .inner24
-
 
460
 
461
 
461
        add     esi, [esp+BLITTER.stride]
462
        add     esi, [esp+BLITTER.stride]
462
        mov     edi, [esp+.extra_var1]
Line 463... Line 463...
463
        add     edi, [_display.pitch]
463
        add     edi, [_display.pitch]
464
        add     ebp, [_display.width]
464
        add     ebp, [_display.width]
465
 
465
 
Line 466... Line 466...
466
        mov     edx, [esp+BLITTER.w]
466
        mov     edx, [esp+BLITTER.w]
Line 467... Line -...
467
        dec     [esp+BLITTER.h]
-
 
468
        jnz     .outer24
467
        dec     [esp+BLITTER.h]
469
 
468
        jnz     .outer24
470
        jmp     .done
469
 
Line 471... Line -...
471
 
-
 
472
 
470
        jmp     .done
473
 
471
 
474
.core_16:
472
 
Line 475... Line -...
475
        lea     edi, [LFB_BASE+edi+ebx*2]
-
 
476
        mov     ebx, [CURRENT_TASK]
473
.core_16:
477
 
474
        lea     edi, [LFB_BASE+edi+ebx*2]
478
align 4
475
        mov     ebx, [CURRENT_TASK]
479
.outer16:
476
 
480
        mov     [esp+.extra_var1], edi
477
  .outer16:
Line 492... Line 489...
492
        cmp     [_display.select_cursor], select_cursor
489
        cmp     [_display.select_cursor], select_cursor
493
        je      @f
490
        je      @f
494
        cmp     [_display.select_cursor], 0
491
        cmp     [_display.select_cursor], 0
495
        jne     .no_mouseunder_2
492
        jne     .no_mouseunder_2
496
;--------------------------------------
493
;--------------------------------------
497
align 4
-
 
498
@@:
494
  @@:
499
        push    ecx
495
        push    ecx
Line 500... Line 496...
500
 
496
 
501
        mov     ecx, [esp+4]
497
        mov     ecx, [esp+4]
Line 506... Line 502...
506
 
502
 
507
; check mouse area for putpixel
503
; check mouse area for putpixel
508
        call    [_display.check_mouse]
504
        call    [_display.check_mouse]
509
        pop     ecx
505
        pop     ecx
510
;--------------------------------------
-
 
511
align 4
506
;--------------------------------------
512
.no_mouseunder_2:
507
  .no_mouseunder_2:
513
; convert to 16 bpp and store to LFB
508
; convert to 16 bpp and store to LFB
514
        and     eax, 00000000111110001111110011111000b
509
        and     eax, 00000000111110001111110011111000b
515
        shr     ah, 2
510
        shr     ah, 2
Line 518... Line 513...
518
        add     al, ah
513
        add     al, ah
519
        rol     eax, 8
514
        rol     eax, 8
520
        mov     [edi+ecx*2], ax
515
        mov     [edi+ecx*2], ax
521
        pop     eax
516
        pop     eax
522
;--------------------------------------
517
;--------------------------------------
523
align 4
-
 
524
.skip_2:
518
  .skip_2:
525
        mov     edi, [esp+.extra_var1]
-
 
526
        inc     ecx
519
        inc     ecx
527
        dec     edx
520
        dec     edx
528
        jnz     .inner16
521
        jnz     .inner16
Line 529... Line 522...
529
 
522
 
-
 
523
        add     esi, [esp+BLITTER.stride]
530
        add     esi, [esp+BLITTER.stride]
524
        mov     edi, [esp+.extra_var1]
531
        add     edi, [_display.pitch]
525
        add     edi, [_display.pitch]
Line 532... Line 526...
532
        add     ebp, [_display.width]
526
        add     ebp, [_display.width]
533
 
527