Subversion Repositories Kolibri OS

Rev

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

Rev 9428 Rev 9436
Line 76... Line 76...
76
int current_process_id = 0;
76
int current_process_id = 0;
77
int proc_list[256];
77
int proc_list[256];
Line 78... Line 78...
78
 
78
 
Line 79... Line -...
79
checkbox show_system = { T_SHOW_SYSTEM, false };
-
 
80
 
-
 
81
char* shared_icons_16;
79
checkbox show_system = { T_SHOW_SYSTEM, false };
82
 
80
 
83
sensor cpu;
81
sensor cpu;
84
sensor ram;
82
sensor ram;
Line 102... Line 100...
102
 
100
 
103
void main()
101
void main()
104
{
102
{
105
	int btn;
103
	int btn;
106
	load_lib();
-
 
107
	shared_icons_16 = memopen("ICONS18W", NULL, SHM_READ);
104
	load_lib();
108
	@SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
105
	@SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
109
	loop() switch(@WaitEventTimeout(50))
106
	loop() switch(@WaitEventTimeout(50))
110
	{
107
	{
111
	   	case evMouse:
108
	   	case evMouse:
Line 295... Line 292...
295
	}
292
	}
296
}
293
}
Line 297... Line 294...
297
 
294
 
298
void DrawIconWithText(dword _x, _y, _icon, _title)
295
void DrawIconWithText(dword _x, _y, _icon, _title)
-
 
296
{
-
 
297
	static dword shared_icons_16;
299
{
298
	if (!shared_icons_16) shared_icons_16 = memopen("ICONS18W", NULL, SHM_READ);
300
	if (shared_icons_16) {
299
	if (shared_icons_16) {
301
		PutPaletteImage(18*18*4*_icon + shared_icons_16, 18, 18,_x, _y, 32, 0);
300
		PutPaletteImage(18*18*4*_icon + shared_icons_16, 18, 18,_x, _y, 32, 0);
302
	} else {
301
	} else {
303
		_x -= ICONGAP;
302
		_x -= ICONGAP;