Subversion Repositories Kolibri OS

Rev

Rev 2022 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2022 Rev 7350
Line 364... Line 364...
364
;   *******  WINDOW DEFINITIONS AND DRAW ********
364
;   *******  WINDOW DEFINITIONS AND DRAW ********
365
;   *********************************************
365
;   *********************************************
366
draw_window:
366
draw_window:
Line 367... Line 367...
367
 
367
 
368
    mov  eax,12 		   ; function 12:tell os about windowdraw
368
	mov  eax,12                   ; function 12:tell os about windowdraw
369
    mov  ebx,1			   ; 1, start of draw
369
    mov  ebx,1                    ; 1, start of draw; 2 - end
-
 
370
    int  0x40
-
 
371
 
370
    int  0x40
372
	mov eax, 48                   ; get skin height
-
 
373
	mov ebx, 4
-
 
374
	int  0x40
371
								   ; DRAW WINDOW
375
	
372
    mov  eax,0			   		   ; function 0 : define and draw window
376
	lea  ecx,[eax + (100 shl 16) + maxy + 4]
373
    mov  ebx,100*65536+maxx+9	   ; [x start] *65536 + [x size]
377
    mov  ebx,100*65536+maxx+9  ; [x start] *65536 + [x size]
374
    mov  ecx,100*65536+maxy+25	   ; [y start] *65536 + [y size]
378
    mov  edx,0x74000000           ; skinned window, not resizable
375
    mov  edx,0x74000000 	  	   ; color of work area RRGGBB,8->color gl
379
    mov  edi,labelt               ; window title
376
    mov  edi,labelt
380
    mov  eax,0                    ; function 0 : define and draw window
-
 
381
    int  0x40
377
    int  0x40
382
 
378
				   ; WINDOW LABEL
-
 
379
    mov  eax,12 		   ; function 12:tell os about windowdraw
383
    mov  eax,12
380
    mov  ebx,2			   ; 2, end of draw
384
    mov  ebx,2
Line 381... Line 385...
381
    int  0x40
385
    int  0x40
Line -... Line 386...
-
 
386
 
382
 
387
    ret
383
    ret
388
	
384
 
389
	
385
x_resolution dd 800
390
x_resolution dd 800
386
vector_x dd 200
391
vector_x dd 200