Subversion Repositories Kolibri OS

Rev

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

Rev 7614 Rev 7806
Line 73... Line 73...
73
					GetFreeRAM()*ram.w/GetTotalRAM(), 
73
					GetFreeRAM()*ram.w/GetTotalRAM(), 
74
					GetTotalRAM()-GetFreeRAM()/1024, 
74
					GetTotalRAM()-GetFreeRAM()/1024, 
75
					GetFreeRAM()/1024,
75
					GetFreeRAM()/1024,
76
					"M"
76
					"M"
77
					);
77
					);
78
				DrawBar(ram.x+ram.w-96, ram.y-25, 96, 20, system.color.work);
78
				DrawBar(ram.x+ram.w-96, ram.y-25, 96, 20, sc.work);
79
				sprintf(#param, "%i KiB", GetTotalRAM()-GetFreeRAM());
79
				sprintf(#param, "%i KiB", GetTotalRAM()-GetFreeRAM());
80
				WriteText(ram.x+ram.w-calc(strlen(#param)*8), ram.y-25, 0x90, system.color.work_text, #param);
80
				WriteText(ram.x+ram.w-calc(strlen(#param)*8), ram.y-25, 0x90, sc.work_text, #param);
Line 81... Line 81...
81
 
81
 
82
				//MonitorRd();
82
				//MonitorRd();
83
				dir_size.get("/rd/1");			
83
				dir_size.get("/rd/1");			
84
				dir_size.bytes += dir_size.files/2 + 32 * 512; //file attr size + FAT table size
84
				dir_size.bytes += dir_size.files/2 + 32 * 512; //file attr size + FAT table size
Line 109... Line 109...
109
}
109
}
Line 110... Line 110...
110
 
110
 
111
void DrawBlockHeader(dword _x, _y, _icon, _title, _subtitle)
111
void DrawBlockHeader(dword _x, _y, _icon, _title, _subtitle)
112
{
112
{
113
	#define ICONGAP 45
113
	#define ICONGAP 45
114
	WriteTextB(_x+ICONGAP, _y, 0x90, system.color.work_text, _title);
114
	WriteTextB(_x+ICONGAP, _y, 0x90, sc.work_text, _title);
115
	DrawIcon32(_x, _y, system.color.work, _icon);
115
	DrawIcon32(_x, _y, sc.work, _icon);
116
	WriteText(_x+ICONGAP, _y+20, 0x90, system.color.work_text, _subtitle);	
116
	WriteText(_x+ICONGAP, _y+20, 0x90, sc.work_text, _subtitle);	
Line 117... Line 117...
117
}
117
}
118
 
118
 
119
dword GetCpuLoad(dword max_h)
119
dword GetCpuLoad(dword max_h)
Line 162... Line 162...
162
	if (!cpu.w) return;
162
	if (!cpu.w) return;
Line 163... Line 163...
163
 
163
 
164
	cpu_stack[pos] = GetCpuLoad(cpu.h);
164
	cpu_stack[pos] = GetCpuLoad(cpu.h);
Line 165... Line 165...
165
	if (cpu_stack[pos]<=2) || (cpu_stack[pos]>cpu.h) cpu_stack[pos]=2;
165
	if (cpu_stack[pos]<=2) || (cpu_stack[pos]>cpu.h) cpu_stack[pos]=2;
166
	
166
	
167
	DrawBar(cpu.x+cpu.w-30, cpu.y-25, 30, 20, system.color.work);
167
	DrawBar(cpu.x+cpu.w-30, cpu.y-25, 30, 20, sc.work);
Line 168... Line 168...
168
	sprintf(#param, "%i%%", cpu_stack[pos]);
168
	sprintf(#param, "%i%%", cpu_stack[pos]);
169
	WriteText(cpu.x+cpu.w-calc(strlen(#param)*8), cpu.y-25, 0x90, system.color.work_text, #param);
169
	WriteText(cpu.x+cpu.w-calc(strlen(#param)*8), cpu.y-25, 0x90, sc.work_text, #param);
170
 
170