16bpp support.

git-svn-id: svn://kolibrios.org@5158 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2014-11-03 13:01:35 +00:00
parent 5f2e32c82f
commit f38db0969e
2 changed files with 36 additions and 4 deletions

View File

@ -17,17 +17,19 @@ pusha
cmp csi_bitspp,word 24 cmp csi_bitspp,word 24
je .next_str_24 je .next_str_24
cmp csi_bitspp,word 16
je .next_str_16
.next_str_32: .next_str_32:
push edx ebx push edx ebx
xor ebx,ebx xor ebx,ebx
@@: @@:
;push eax ;push eax
mov eax,[gs:edx] mov eax,[gs:edx]
mov [edi+ecx],ax mov [edi+ecx],ax
shr eax,8 shr eax,8
mov [edi+ecx+2],ah mov [edi+ecx+2],ah
;pop eax ;pop eax
add ecx,3 add ecx,3
add edx,4;eax add edx,4;eax
inc bx inc bx
@ -45,12 +47,12 @@ ret
push edx ebx push edx ebx
xor ebx,ebx xor ebx,ebx
@@: @@:
;push eax ;push eax
mov eax,[gs:edx] mov eax,[gs:edx]
mov [edi+ecx],ax mov [edi+ecx],ax
shr eax,8 shr eax,8
mov [edi+ecx+2],ah mov [edi+ecx+2],ah
;pop eax ;pop eax
add ecx,3 add ecx,3
add edx,3;eax add edx,3;eax
inc bx inc bx
@ -64,6 +66,34 @@ ret
popa popa
ret 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: copy_area:
mov eax,[scr.bytesps] mov eax,[scr.bytesps]
mov ebx,eax mov ebx,eax

View File

@ -14,6 +14,8 @@
; 31.01.07 - ¢áñ ⥯¥àì à¨áã¥âáï ®â­®á¨â¥«ì­® ª«¨¥­â᪮© ®¡« á⨠; 31.01.07 - ¢áñ ⥯¥àì à¨áã¥âáï ®â­®á¨â¥«ì­® ª«¨¥­â᪮© ®¡« áâ¨
; 02.11.10 - ˆá¯®«ì§ã¥âáï checkbox ¢¥àᨨ 2 ; 02.11.10 - ˆá¯®«ì§ã¥âáï checkbox ¢¥àᨨ 2
format binary as ""
title equ 'Screenshooter v 1.2' ; ‡ £®«®¢®ª ®ª­  title equ 'Screenshooter v 1.2' ; ‡ £®«®¢®ª ®ª­ 
include '../../develop/libraries/box_lib/load_lib.mac' include '../../develop/libraries/box_lib/load_lib.mac'
include '../../develop/libraries/box_lib/trunk/box_lib.mac' include '../../develop/libraries/box_lib/trunk/box_lib.mac'