Flatwav: skinned window

git-svn-id: svn://kolibrios.org@2083 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2011-08-20 14:20:56 +00:00
parent 0990f61bd9
commit 4190628f34

View File

@ -680,41 +680,26 @@ draw_window:
; DRAW WINDOW
mov eax,0 ; function 0 : define and draw window
mov ebx,100*65536+SIZE_X+20 ; [x start] *65536 + [x size]
mov ecx,100*65536+SIZE_Y+30 ; [y start] *65536 + [y size]
mov edx,0x02000000 ; color of work area RRGGBB,8->color gl
mov esi,0x805080d0 ; color of grab bar RRGGBB,8->color gl
mov edi,0x005080d0 ; color of frames RRGGBB
mov ebx,120*65536+SIZE_X+20 ; [x start] *65536 + [x size]
mov ecx,120*65536+SIZE_Y+45 ; [y start] *65536 + [y size]
mov edx,0x34000000 ; color of work area RRGGBB,8->color gl
;mov esi,0x805080d0 ; color of grab bar RRGGBB,8->color gl
mov edi,labelt ; color of frames RRGGBB
int 0x40
; WINDOW LABEL
mov eax,4 ; function 4 : write text to window
mov ebx,8*65536+8 ; [x start] *65536 + [y start]
mov ecx,0x20ddeeff ; font 1 & color ( 0xF0RRGGBB )
mov edx,labelt ; pointer to text beginning
mov esi,labellen-labelt ; text length
int 0x40
; CLOSE BUTTON
mov eax,8 ; function 8 : define and draw button
mov ebx,(SIZE_X+20-19)*65536+12 ; [x start] *65536 + [x size]
mov ecx,5*65536+12 ; [y start] *65536 + [y size]
mov edx,1 ; button id
mov esi,0x6688dd ; button color RRGGBB
int 0x40
; flag color button
mov eax,8 ; function 8 : define and draw button
mov ebx,(SIZE_X-30)*65536+20 ; [x start] *65536 + [x size]
mov ecx,5*65536+12 ; [y start] *65536 + [y size]
mov edx,2 ; button id
mov esi,0x2288dd ; button color RRGGBB
mov esi,0x555555 ; button color RRGGBB
int 0x40
; spped button
mov eax,8 ; function 8 : define and draw button
mov ebx,(SIZE_X-60)*65536+20 ; [x start] *65536 + [x size]
mov ecx,5*65536+12 ; [y start] *65536 + [y size]
mov edx,3 ; button id
mov esi,0x2288dd ; button color RRGGBB
mov esi,0x555555 ; button color RRGGBB
int 0x40
mov eax,12 ; function 12:tell os about windowdraw
@ -747,7 +732,7 @@ dw 38,39,29
labelt:
db '3d wavy rotaring area'
db '3d wavy rotaring area',0
labellen:
sinbeta rd 1
cosbeta rd 1