Subversion Repositories Kolibri OS

Rev

Rev 3113 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3113 Rev 3123
Line 88... Line 88...
88
	char	rezerv2;
88
	char	rezerv2;
89
	dword	adress,use_memory,ID,left,top,width,height;
89
	dword	adress,use_memory,ID,left,top,width,height;
90
	word	status_slot,rezerv3;
90
	word	status_slot,rezerv3;
91
	dword	work_left,work_top,work_width,work_height;
91
	dword	work_left,work_top,work_width,work_height;
92
	char	status_window;
92
	char	status_window;
93
	void	GetInfo( ECX);
93
	dword   cwidth,cheight;
94
	byte    reserved[1024-71];
94
	byte    reserved[1024-71-8];
95
};
95
};
Line 96... Line 96...
96
 
96
 
97
void proc_info::GetInfo( EBX, ECX)
97
inline fastcall void GetProcessInfo( EBX, ECX)
98
{
98
{
99
	$mov eax,9;
99
	$mov eax,9;
-
 
100
	$int  0x40
-
 
101
	DSDWORD[EBX+71] = DSDWORD[EBX+42] - 9; //set cwidth
100
	$int 0x40
102
	DSDWORD[EBX+75] = DSDWORD[EBX+46] - GetSkinHeight() - 4; //set cheight
Line 101... Line 103...
101
}
103
}
102
 
104
 
103
inline fastcall int GetSlot( ECX)
105
inline fastcall int GetSlot( ECX)
Line 260... Line 262...
260
	$int 0x40;
262
	$int 0x40;
261
}
263
}
Line 262... Line 264...
262
 
264
 
263
void DrawBar(dword x,y,w,h,EDX)
265
void DrawBar(dword x,y,w,h,EDX)
-
 
266
{
264
{
267
	if (h<0) || (h>8000) return;
265
	EAX = 13;
268
	EAX = 13;
266
	EBX = x<<16+w;
269
	EBX = x<<16+w;
267
	ECX = y<<16+h;
270
	ECX = y<<16+h;
268
 	$int 0x40
271
 	$int 0x40
Line 274... Line 277...
274
	DrawBar(x,y+1,1,height-1,color1);
277
	DrawBar(x,y+1,1,height-1,color1);
275
	DrawBar(x+width,y+1,1,height,color2);
278
	DrawBar(x+width,y+1,1,height,color2);
276
	DrawBar(x,y+height,width,1,color2);
279
	DrawBar(x,y+height,width,1,color2);
277
}
280
}
Line 278... Line -...
278
 
-
 
279
void DrawFlatButton(dword x,y,width,height,id,color,text)
-
 
280
{
-
 
281
	DrawRegion_3D(x,y,width,height,0x94AECE,0x94AECE);
-
 
282
	DrawRegion_3D(x+1,y+1,width-2,height-2,0xFFFFFF,0xC7C7C7);
-
 
283
	DrawBar(x+2,y+2,width-3,height-3,color);
-
 
284
	IF (id<>0)	DefineButton(x+1,y+1,width-2,height-2,id+BT_HIDE,0xEFEBEF);
-
 
285
	WriteText(-strlen(text)*6+width/2+x+1,height/2-3+y,0x80,0,text,0);
-
 
286
}
-
 
287
 
281
 
288
void PutPaletteImage(dword EBX,w,h,x,y, EDI)
282
void PutPaletteImage(dword EBX,w,h,x,y, EDI)
289
{
283
{
290
	EAX = 65;
284
	EAX = 65;
291
	ECX = w<<16+h;
285
	ECX = w<<16+h;