mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-24 15:46:49 +03:00
3dee3b0598
git-svn-id: svn://kolibrios.org@2000 a494cfbc-eb01-0410-851d-a64ba20cac60
43 lines
810 B
PHP
43 lines
810 B
PHP
;---------------------------------------------------------------------
|
|
; ÓÑÒÀÍÎÂÈÒÜ ÔÎÍ
|
|
background:
|
|
cmp [soi],0
|
|
je .end
|
|
cmp [bgrmode],dword 2
|
|
jbe @f
|
|
jmp .end
|
|
@@:
|
|
mov ecx,[img_width] ; øèðèíà
|
|
test ecx,ecx
|
|
jz .end
|
|
mov edx,[img_high] ; âûñîòà
|
|
test edx,edx
|
|
jz .end
|
|
mcall 15,1 ; set size
|
|
|
|
mov esi,ecx
|
|
imul esi,edx
|
|
lea esi,[esi*3]
|
|
mov ecx,[soi]
|
|
|
|
xor edx,edx
|
|
|
|
cmp [img_resolution],24
|
|
je @f
|
|
push dword image_file
|
|
call [convert_Conv_24b]
|
|
mov ecx,[raw_pointer_2]
|
|
mcall 15,5 ;15,5 set data
|
|
mov ecx,[raw_pointer_2]
|
|
mcall 68,13
|
|
jmp .set_mode
|
|
@@:
|
|
mcall 15,5 ; 15,5 set data
|
|
.set_mode:
|
|
mov ecx,[bgrmode]
|
|
mcall 15,4 ; 15,4 set mode
|
|
dec ebx ; 15,3 redraw background
|
|
mcall
|
|
.end:
|
|
ret
|
|
;--------------------------------------------------------------------- |