/programs/cmm/sysmon/general.h |
---|
75,9 → 75,9 |
GetFreeRAM()/1024, |
"M" |
); |
DrawBar(ram.x+ram.w-96, ram.y-25, 96, 20, system.color.work); |
DrawBar(ram.x+ram.w-96, ram.y-25, 96, 20, sc.work); |
sprintf(#param, "%i KiB", GetTotalRAM()-GetFreeRAM()); |
WriteText(ram.x+ram.w-calc(strlen(#param)*8), ram.y-25, 0x90, system.color.work_text, #param); |
WriteText(ram.x+ram.w-calc(strlen(#param)*8), ram.y-25, 0x90, sc.work_text, #param); |
//MonitorRd(); |
dir_size.get("/rd/1"); |
111,9 → 111,9 |
void DrawBlockHeader(dword _x, _y, _icon, _title, _subtitle) |
{ |
#define ICONGAP 45 |
WriteTextB(_x+ICONGAP, _y, 0x90, system.color.work_text, _title); |
DrawIcon32(_x, _y, system.color.work, _icon); |
WriteText(_x+ICONGAP, _y+20, 0x90, system.color.work_text, _subtitle); |
WriteTextB(_x+ICONGAP, _y, 0x90, sc.work_text, _title); |
DrawIcon32(_x, _y, sc.work, _icon); |
WriteText(_x+ICONGAP, _y+20, 0x90, sc.work_text, _subtitle); |
} |
dword GetCpuLoad(dword max_h) |
164,9 → 164,9 |
cpu_stack[pos] = GetCpuLoad(cpu.h); |
if (cpu_stack[pos]<=2) || (cpu_stack[pos]>cpu.h) cpu_stack[pos]=2; |
DrawBar(cpu.x+cpu.w-30, cpu.y-25, 30, 20, system.color.work); |
DrawBar(cpu.x+cpu.w-30, cpu.y-25, 30, 20, sc.work); |
sprintf(#param, "%i%%", cpu_stack[pos]); |
WriteText(cpu.x+cpu.w-calc(strlen(#param)*8), cpu.y-25, 0x90, system.color.work_text, #param); |
WriteText(cpu.x+cpu.w-calc(strlen(#param)*8), cpu.y-25, 0x90, sc.work_text, #param); |
for (i=0; i<WIN_CONTENT_W; i+=2) { |
DrawBar(i+cpu.x, cpu.y, 1, cpu.h-cpu_stack[i], PROGRESS_BG); |
/programs/cmm/sysmon/process.h |
---|
75,9 → 75,9 |
WIN_CONTENT_H-BOTPANEL_H-TAB_HEIGHT, false); |
SelectList_DrawBorder(); |
//DrawWideRectangle(0, 0, Form.cwidth, Form.cheight, 4, system.color.work); |
//DrawWideRectangle(0, 0, Form.cwidth, Form.cheight, 4, sc.work); |
DrawBar(select_list.x-2, select_list.y+select_list.h+2, |
select_list.w+scroll1.size_x+4, BOTPANEL_H, system.color.work); |
select_list.w+scroll1.size_x+4, BOTPANEL_H, sc.work); |
DrawCaptButton(Form.cwidth-110-WIN_PAD, |
select_list.y+select_list.h+5, |
110,25,BTN_ID_KILL_PROCESS,0xF38181, 0xFFFfff, T_END_PROCESS); |
84,7 → 84,7 |
DrawCaptButton(Form.cwidth-230-WIN_PAD, |
select_list.y+select_list.h+5, |
110,25,BTN_ID_SHOW_PROCESS_INFO, |
system.color.work_button, system.color.work_button_text, T_DETAILS); |
sc.button, sc.button_text, T_DETAILS); |
show_system.draw(select_list.x + 3, select_list.y+select_list.h+10); |
default: |
SelectList_LineChanged(); |
/programs/cmm/sysmon/sysmon.c |
---|
61,9 → 61,9 |
int Sysmon__DefineAndDrawWindow() |
{ |
system.color.get(); |
sc.get(); |
DefineAndDrawWindow(screen.width - WIN_CONTENT_H - 200, 100, WIN_CONTENT_W + WIN_PAD + WIN_PAD +9, |
WIN_CONTENT_H + TAB_HEIGHT + skin_height + 4, 0x34, system.color.work, "System Monitor",0); |
WIN_CONTENT_H + TAB_HEIGHT + skin_height + 4, 0x34, sc.work, "System Monitor",0); |
GetProcessInfo(#Form, SelfInfo); |
if (Form.status_window>2) return false; |
//if (Form.width < 300) { MoveSize(OLD,OLD,300,OLD); break; } |