Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7257 → Rev 7258

/programs/media/animage/trunk/graphlib.inc
44,13 → 44,17
; 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>>>>