forked from KolibriOS/kolibrios
fix function GetColorOfPixel
git-svn-id: svn://kolibrios.org@7258 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
9115f97464
commit
0096ee123b
@ -44,13 +44,17 @@ PutPixel:
|
||||
; eax - color of pixel in coordinats (x,y)
|
||||
GetColorOfPixel:
|
||||
|
||||
cmp esi,ebx
|
||||
jb @f
|
||||
xor eax,eax
|
||||
dec eax
|
||||
ret
|
||||
@@:
|
||||
imul ebx,edi
|
||||
add ebx,esi
|
||||
lea ebx,[ebx+ebx*2]
|
||||
add eax,ebx
|
||||
mov ebx,[eax]
|
||||
and ebx,0xffffff
|
||||
mov eax,ebx
|
||||
mov eax,[eax+ebx]
|
||||
and eax,0xffffff
|
||||
ret
|
||||
|
||||
;procedure <<<<calculate line>>>>
|
||||
|
Loading…
Reference in New Issue
Block a user