forked from KolibriOS/kolibrios
7b02f7b61d
git-svn-id: svn://kolibrios.org@9541 a494cfbc-eb01-0410-851d-a64ba20cac60
219 lines
6.3 KiB
PHP
219 lines
6.3 KiB
PHP
draw_result:
|
||
;.................................................................................................
|
||
; <EFBFBD>®«ìè ï à ¬ª ¢ë¢®¤ १ã«ìâ â
|
||
;.................................................................................................
|
||
mcall SF_DRAW_RECT, <4,110>, <9,219-18>, [sc.work_graph]
|
||
mcall , <5,110-2>, <10,219-20>, [sc.work_light]
|
||
|
||
;.................................................................................................
|
||
; Žâà¨á®¢ª १ã«ìâ â 梥⠢ hex color2
|
||
;.................................................................................................
|
||
mcall , (16+2) shl 16+15, (16+8) shl 16+15, 0x222222
|
||
; color 2 - draw color
|
||
mcall , (17+2) shl 16+13, (17+8) shl 16+13, [color2]
|
||
; color 1 - draw fringle
|
||
mcall , (11+2) shl 16+15, (12+8) shl 16+15, 0x222222
|
||
; color 2 - draw color
|
||
mcall , (12+2) shl 16+13, (13+8) shl 16+13, [color]
|
||
|
||
; value - draw fringle
|
||
mcall , (34+2) shl 16+72, (16+4) shl 16+15+4, 0x222222
|
||
; value - draw background
|
||
mcall , (35+2) shl 16+70, (17+4) shl 16+13+4, 0xFFFFFF
|
||
|
||
; ”ãªæ¨ï 47 - ¢ë¢®¤ ç¨á« ¢ ®ª®
|
||
;ebx - ¯ à ¬¥âàë ¯à¥®¡à §®¢ ¨ï ç¨á« ¢ ⥪áâ (HEX)
|
||
mcall SF_DRAW_NUMBER, 256+8 shl 16, [color], <40,22>, 0x10000000, 0
|
||
|
||
; äãªæ¨ï 4: ¯¨á âì ⥪áâ ¢ ®ª¥
|
||
; edx - à¨á㥬 '#'
|
||
; esi - ¤«¨ ⥪áâ ¢ ¡ ©â å
|
||
;mcall SF_DRAW_TEXT,38*65536+20,0,hex,1
|
||
|
||
;.................................................................................................
|
||
; Žâà¨á®¢ª r g b § 票©
|
||
;.................................................................................................
|
||
call get_spectr
|
||
|
||
movzx eax,[cred] ; ªà áë©
|
||
mov ebx,12*65536+196 ; [x ç «ìë©] *65536 + [y ç «ìë©]
|
||
call draw_value ; ¢ë¢®¤¨¬ १ã«ìâ â
|
||
|
||
movzx eax,[cgreen] ; §¥«¥ë©
|
||
mov ebx,37*65536+196 ; [x ç «ìë©] *65536 + [y ç «ìë©]
|
||
call draw_value ; ¢ë¢®¤¨¬ १ã«ìâ â
|
||
|
||
movzx eax,[cblue] ; ᨨ©
|
||
mov ebx,62*65536+196 ; [x ç «ìë©] *65536 + [y ç «ìë©]
|
||
call draw_value ; ¢ë¢®¤¨¬ १ã«ìâ â
|
||
|
||
movzx eax,[calpha] ; «ìä
|
||
mov ebx,87*65536+196 ; [x ç «ìë©] *65536 + [y ç «ìë©]
|
||
call draw_value ; ¢ë¢®¤¨¬ १ã«ìâ â
|
||
|
||
;.................................................................................................
|
||
; ‚뢮¤¨¬ ¡ãª¢ë r g b a
|
||
;.................................................................................................
|
||
mov eax,SF_DRAW_TEXT ; 4 - ¢ë¢¥á⨠áâபã ⥪áâ ¢ ®ª®
|
||
mov ebx,17 shl 16+DRAWY+37 ; [ª®®à¤¨ â ¯® ®á¨ x]*65536 + [ª®®à¤¨ â ¯® ®á¨ y]
|
||
mov ecx, 0x10000000 ; 0xX0RRGGBB (RR, GG, BB § ¤ îâ 梥â ⥪áâ )
|
||
add ecx, [sc.work_text]
|
||
mov edx,cname ; 㪠§ ⥫ì ç «® áâப¨
|
||
mov esi,1 ; ¢ë¢®¤¨âì esi ᨬ¢®«®¢
|
||
newline: ; 横«
|
||
int 0x40 ; <EFBFBD>à¥àë¢ ¨¥
|
||
add ebx,25 shl 16 ; „®¡ ¢«ï¥¬
|
||
inc edx ; „®¡ ¢«ï¥¬
|
||
cmp [edx],byte 'x' ; ‘à ¢¥¨¥ á ¡ ©â®¬ å
|
||
jne newline ; …᫨ ¥ ã«ì ¨«¨ ¥ à ¢®
|
||
|
||
;.................................................................................................
|
||
; Žâà¨á®¢ª á« ©¤¥à®¢
|
||
;.................................................................................................
|
||
; ”ãªæ¨ï 13 - à¨á®¢ âì ¯àאַ㣮«ì¨ª
|
||
|
||
mov ebx, 18*65536+18
|
||
mov ecx, 61*65536+61
|
||
|
||
push dword 0xFC5663
|
||
push dword 0xFA0919
|
||
push dword 0xE20516
|
||
push dword 0xFA0919
|
||
|
||
call Draw_base
|
||
|
||
add ebx, 20*65536+20
|
||
|
||
push dword 0x33F742
|
||
push dword 0x0ADD18
|
||
push dword 0x08CE19
|
||
push dword 0x08CE19
|
||
|
||
call Draw_base
|
||
|
||
add ebx, 20*65536+20
|
||
|
||
push dword 0x88A6FF
|
||
push dword 0x3366FF
|
||
push dword 0x114DFF
|
||
push dword 0x114DFF
|
||
|
||
call Draw_base
|
||
|
||
add ebx, 20*65536+20
|
||
|
||
push dword 0xDADADA
|
||
push dword 0xB9B9B9
|
||
push dword 0xA9A9A9
|
||
push dword 0xA9A9A9
|
||
|
||
call Draw_base
|
||
|
||
;.................................................................................................
|
||
; Žâà¨á®¢ª ¯®«§ãª®¢
|
||
;.................................................................................................
|
||
mov ebx, 13*65536+13
|
||
mov ecx, (61-3)*65536+(61-3)
|
||
movzx eax,[cred]
|
||
call draw_slider
|
||
|
||
mov ebx, (13+25*1)*65536+(13+25*1)
|
||
mov ecx, (61-3)*65536+(61-3)
|
||
movzx eax,[cgreen]
|
||
call draw_slider
|
||
|
||
mov ebx, (13+25*2)*65536+(13+25*2)
|
||
mov ecx, (61-3)*65536+(61-3)
|
||
movzx eax,[cblue]
|
||
call draw_slider
|
||
|
||
mov ebx, (13+25*3)*65536+(13+25*3)
|
||
mov ecx, (61-3)*65536+(61-3)
|
||
movzx eax,[calpha]
|
||
call draw_slider
|
||
|
||
|
||
ret ; ‚®§¢à é ¥¬ ã¯à ¢«¥¨¥
|
||
;end_draw_result
|
||
|
||
Draw_base:
|
||
push ebp
|
||
mov ebp, esp
|
||
|
||
add ebx, 1*65536+4
|
||
mcall SF_DRAW_LINE, , , 0
|
||
add ecx, 128*65536+128
|
||
int 0x40
|
||
|
||
sub ebx, 1*65536+4
|
||
sub ecx, (128-1)*65536+1
|
||
int 0x40
|
||
|
||
add ebx, 1*65536+1
|
||
mov edx, dword [ebp+20]
|
||
int 0x40
|
||
|
||
add ebx, 1*65536+1
|
||
mov edx, dword [ebp+16]
|
||
int 0x40
|
||
|
||
add ebx, 1*65536+1
|
||
mov edx, dword [ebp+12]
|
||
int 0x40
|
||
|
||
add ebx, 1*65536+1
|
||
mov edx, dword [ebp+8]
|
||
int 0x40
|
||
|
||
add ebx, 1*65536+1
|
||
mov edx, 0
|
||
int 0x40
|
||
|
||
sub ecx, 1*65536+(128-1)
|
||
|
||
pop ebp
|
||
ret 4*4
|
||
|
||
|
||
|
||
draw_slider:
|
||
shr eax, 1
|
||
mov edx, eax
|
||
shl edx, 16
|
||
or eax, edx
|
||
sub ecx, eax
|
||
add ecx, 127*65536+127
|
||
|
||
add ecx, 1*65536+5
|
||
mcall SF_DRAW_LINE, , , 0
|
||
add ebx, 15*65536+15
|
||
int 0x40
|
||
|
||
sub ebx, 14*65536+1
|
||
sub ecx, 1*65536+5
|
||
int 0x40
|
||
|
||
mov edx, 0xFFFFFF
|
||
add ecx, 1*65536+1
|
||
int 0x40
|
||
|
||
mov edx, 0xE1E1E1
|
||
add ecx, 1*65536+1
|
||
int 0x40
|
||
add ecx, 1*65536+1
|
||
int 0x40
|
||
add ecx, 1*65536+1
|
||
int 0x40
|
||
|
||
mov edx, 0xB9B9B9
|
||
add ecx, 1*65536+1
|
||
int 0x40
|
||
|
||
mov edx, 0
|
||
add ecx, 1*65536+1
|
||
int 0x40
|
||
|
||
ret
|
||
|
||
;end_slider
|