Port of statesaver to C, new resolution for SDL port, fixed bilinear filter in GUI
This commit is contained in:
@@ -1283,76 +1283,6 @@ DetermineNewest:
|
||||
determinenewhelp 9,'9'
|
||||
ret
|
||||
|
||||
NEWSYM CapturePicture
|
||||
pushad
|
||||
mov esi,[vidbuffer]
|
||||
add esi,288*2+16*2
|
||||
mov edi,PrevPicture
|
||||
mov edx,56
|
||||
.next
|
||||
push esi
|
||||
push edx
|
||||
mov dx,1111011111011110b
|
||||
cmp byte[newengen],0
|
||||
je .noneweng2
|
||||
cmp byte[nggposng],5
|
||||
jne .noneweng2
|
||||
mov dx,0111101111011110b
|
||||
.noneweng2
|
||||
mov ecx,64
|
||||
.loop
|
||||
mov ax,[esi]
|
||||
mov bx,[esi+4]
|
||||
and ax,dx
|
||||
and bx,dx
|
||||
shr ax,1
|
||||
shr bx,1
|
||||
add ax,bx
|
||||
push ax
|
||||
mov ax,[esi+288*2]
|
||||
mov bx,[esi+4+288*2]
|
||||
and ax,dx
|
||||
and bx,dx
|
||||
shr ax,1
|
||||
shr bx,1
|
||||
add bx,ax
|
||||
pop ax
|
||||
and ax,dx
|
||||
and bx,dx
|
||||
shr ax,1
|
||||
shr bx,1
|
||||
add ax,bx
|
||||
mov [edi],ax
|
||||
add esi,8
|
||||
add edi,2
|
||||
dec ecx
|
||||
jnz .loop
|
||||
pop edx
|
||||
pop esi
|
||||
add esi,288*2*4
|
||||
dec edx
|
||||
jnz near .next
|
||||
cmp byte[newengen],0
|
||||
je .noneweng
|
||||
cmp byte[nggposng],5
|
||||
jne .noneweng
|
||||
mov edx,PrevPicture
|
||||
mov ecx,64*56
|
||||
.loop2
|
||||
mov ax,[edx]
|
||||
mov bx,ax
|
||||
and ax,0111111111100000b
|
||||
and bx,0000000000011111b
|
||||
shl ax,1
|
||||
or bx,ax
|
||||
mov [edx],bx
|
||||
add edx,2
|
||||
dec ecx
|
||||
jnz .loop2
|
||||
.noneweng
|
||||
popad
|
||||
ret
|
||||
|
||||
GetPicture:
|
||||
mov cl,[CurPictureVal]
|
||||
cmp [PrevPictureVal],cl
|
||||
|
||||
Reference in New Issue
Block a user