/programs/media/scrshoot/gp.inc |
---|
17,6 → 17,8 |
cmp csi_bitspp,word 24 |
je .next_str_24 |
cmp csi_bitspp,word 16 |
je .next_str_16 |
.next_str_32: |
push edx ebx |
64,6 → 66,34 |
popa |
ret |
.next_str_16: |
push edx ebx |
xor ebx,ebx |
@@: |
;push eax |
mov eax,[gs:edx] |
shl eax, 3 |
ror eax, 8 |
shl ax, 2 |
ror eax, 8 |
shl al, 3 |
mov [edi+ecx+2],al |
rol eax, 16 |
mov [edi+ecx],ax |
;pop eax |
add ecx,3 |
add edx,2 |
inc bx |
cmp bx,csi_width |
jl @b |
pop ebx edx |
add edx,csi_bytesps |
inc bx |
cmp bx,csi_height |
jl .next_str_16 |
popa |
ret |
copy_area: |
mov eax,[scr.bytesps] |
mov ebx,eax |