forked from KolibriOS/kolibrios
Small optimization.
git-svn-id: svn://kolibrios.org@5164 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
11b3a68203
commit
65ccbec301
@ -454,12 +454,12 @@ align 4
|
||||
;--------------------------------------
|
||||
align 4
|
||||
.skip_1:
|
||||
mov edi, [esp+.extra_var1]
|
||||
inc ecx
|
||||
dec edx
|
||||
jnz .inner24
|
||||
|
||||
add esi, [esp+BLITTER.stride]
|
||||
mov edi, [esp+.extra_var1]
|
||||
add edi, [_display.pitch]
|
||||
add ebp, [_display.width]
|
||||
|
||||
@ -470,17 +470,14 @@ align 4
|
||||
jmp .done
|
||||
|
||||
|
||||
|
||||
.core_16:
|
||||
lea edi, [LFB_BASE+edi+ebx*2]
|
||||
mov ebx, [CURRENT_TASK]
|
||||
|
||||
align 4
|
||||
.outer16:
|
||||
mov [esp+.extra_var1], edi
|
||||
xor ecx, ecx
|
||||
|
||||
align 4
|
||||
.inner16:
|
||||
cmp [ebp+ecx], bl ; Does the process own this pixel?
|
||||
jne .skip_2
|
||||
@ -494,7 +491,6 @@ align 4
|
||||
cmp [_display.select_cursor], 0
|
||||
jne .no_mouseunder_2
|
||||
;--------------------------------------
|
||||
align 4
|
||||
@@:
|
||||
push ecx
|
||||
|
||||
@ -508,7 +504,6 @@ align 4
|
||||
call [_display.check_mouse]
|
||||
pop ecx
|
||||
;--------------------------------------
|
||||
align 4
|
||||
.no_mouseunder_2:
|
||||
; convert to 16 bpp and store to LFB
|
||||
and eax, 00000000111110001111110011111000b
|
||||
@ -520,14 +515,13 @@ align 4
|
||||
mov [edi+ecx*2], ax
|
||||
pop eax
|
||||
;--------------------------------------
|
||||
align 4
|
||||
.skip_2:
|
||||
mov edi, [esp+.extra_var1]
|
||||
inc ecx
|
||||
dec edx
|
||||
jnz .inner16
|
||||
|
||||
add esi, [esp+BLITTER.stride]
|
||||
mov edi, [esp+.extra_var1]
|
||||
add edi, [_display.pitch]
|
||||
add ebp, [_display.width]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user