Subversion Repositories Kolibri OS

Rev

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

Rev 7369 Rev 7370
Line 1... Line 1...
1
/*
1
/*
2
 * System Monitor
2
 * System Monitor
3
 * version 0.85
3
 * version 0.86
4
 * Author: Leency
4
 * Author: Leency
5
*/
5
*/
Line 6... Line 6...
6
 
6
 
Line 20... Line 20...
20
//                                                   //
20
//                                                   //
21
//===================================================//
21
//===================================================//
Line 22... Line 22...
22
 
22
 
23
#define MIN_PB_BLOCK_W 19
23
#define MIN_PB_BLOCK_W 19
24
#define LOAD_BG 0xFFFfff
24
#define LOAD_BG 0xFFFfff
-
 
25
#define LOAD_ACTIVE 0x6C81DC
Line 25... Line 26...
25
#define LOAD_ACTIVE 0x3887EE
26
#define LOAD_BG_TEXT 0x696969
26
 
27
 
27
struct sensor {
28
struct sensor {
28
	int x,y,w,h;
29
	int x,y,w,h;
Line 55... Line 56...
55
	sprintf(#param, "%i%s", active_value, mesure);
56
	sprintf(#param, "%i%s", active_value, mesure);
56
	WriteText(w-progress_w- calc(strlen(#param)*8) /2 + x, h/2-7+y, 0x90, LOAD_BG, #param);
57
	WriteText(w-progress_w- calc(strlen(#param)*8) /2 + x, h/2-7+y, 0x90, LOAD_BG, #param);
Line 57... Line 58...
57
 
58
 
58
	DrawBar(x+w-progress_w, y, progress_w, h, LOAD_BG);
59
	DrawBar(x+w-progress_w, y, progress_w, h, LOAD_BG);
59
	sprintf(#param, "%i%s", bg_value, mesure);
60
	sprintf(#param, "%i%s", bg_value, mesure);
60
	WriteText(-progress_w - calc(strlen(#param)*8)/2 + w+x, h/2-7+y, 0x90, LOAD_ACTIVE, #param);
61
	WriteText(-progress_w - calc(strlen(#param)*8)/2 + w+x, h/2-7+y, 0x90, LOAD_BG_TEXT, #param);
Line 61... Line 62...
61
}
62
}
62
 
63
 
63
//===================================================//
64
//===================================================//