Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 1921 → Rev 2388

/programs/develop/libraries/libs-dev/libimg/pcx/pcx.asm
1,5 → 1,5
;;================================================================================================;;
;;//// pcx.asm //// (c) dunkaist, 2010 ///////////////////////////////////////////////////////////;;
;;//// pcx.asm //// (c) dunkaist, 2010,2012 //////////////////////////////////////////////////////;;
;;================================================================================================;;
;; ;;
;; This file is part of Common development libraries (Libs-Dev). ;;
59,9 → 59,9
.is_not_pcx:
pop edi ecx
ret
 
endp
 
 
;;================================================================================================;;
proc img.decode.pcx _data, _length, _options ;////////////////////////////////////////////////////;;
;;------------------------------------------------------------------------------------------------;;
140,7 → 140,7
._24bit.begin:
mov ax, word[bpl]
._24bit.decode:
call get_byte
call pcx._.get_byte
._24bit.write_sequence:
mov [edi], dl
dec ax
207,7 → 207,7
.indexed.begin:
mov ax, word[bpl]
.indexed.decode:
call get_byte
call pcx._.get_byte
.indexed.write_sequence:
mov [edi], dl
inc edi
256,7 → 256,7
mov ax, [xsize]
 
.monochrome.decode:
call get_byte
call pcx._.get_byte
.monochrome.write_sequence:
mov [edi], dl
inc edi
270,7 → 270,7
.monochrome.is_last_byte_in_line:
test ebx, ebx
jng @f
call get_byte
call pcx._.get_byte
jmp .monochrome.is_last_byte_in_line
@@:
dec word[ysize]
282,11 → 282,9
popa
mov eax, [retvalue]
ret
 
endp
 
 
 
;;================================================================================================;;
proc img.encode.pcx _img, _p_length, _options ;///////////////////////////////////////////////////;;
;;------------------------------------------------------------------------------------------------;;
309,7 → 307,7
;;================================================================================================;;
;;////////////////////////////////////////////////////////////////////////////////////////////////;;
;;================================================================================================;;
proc get_byte
proc pcx._.get_byte
 
mov dh, byte[esi]
inc esi
325,9 → 323,10
.exit1:
movzx ecx, dh
sub ebx, ecx
 
ret
endp
 
 
;;================================================================================================;;
;;////////////////////////////////////////////////////////////////////////////////////////////////;;
;;================================================================================================;;
335,5 → 334,3
;;================================================================================================;;
;;////////////////////////////////////////////////////////////////////////////////////////////////;;
;;================================================================================================;;
 
;
/programs/develop/libraries/libs-dev/libimg/pcx/pcx.inc
1,5 → 1,5
;;================================================================================================;;
;;//// pcx.inc //// (c) dunkaist, 2010 ///////////////////////////////////////////////////////////;;
;;//// pcx.inc //// (c) dunkaist, 2010,2012 //////////////////////////////////////////////////////;;
;;================================================================================================;;
;; ;;
;; This file is part of Common development libraries (Libs-Dev). ;;