Subversion Repositories Kolibri OS

Rev

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

Rev 5743 Rev 5753
Line 113... Line 113...
113
}
113
}
Line 114... Line 114...
114
 
114
 
115
 
115
 
116
void DrawSystemDiscs()
116
void DrawSystemDiscs()
117
{    
117
{    
Line 118... Line 118...
118
	char dev_name[15], disc_name[100], i, dev_icon, is_active;
118
	char dev_name[15], disc_name[100], i, dev_icon, is_active, name_len;
119
	int pos_y, pos_x=2;
119
	int pos_y, pos_x=2;
120
	
120
	
Line 183... Line 183...
183
			_PutImage(23,pos_y, 18,17, is_active*6+dev_icon*17*18*3+#devices);
183
			_PutImage(23,pos_y, 18,17, is_active*6+dev_icon*17*18*3+#devices);
184
		}
184
		}
185
		else
185
		else
186
		{
186
		{
187
			pos_y = 43;
187
			pos_y = 43;
-
 
188
			name_len = strlen(#dev_name)-1*8;
188
			DrawBar(pos_x, pos_y, strlen(#dev_name)*6 + 29, 17, 0xFFFFFF);
189
			DrawBar(pos_x, pos_y, name_len + 31, 17, 0xFFFFFF);
189
			DefineButton(pos_x+2, pos_y, strlen(#dev_name)*6 + 25, 16, 100+i+BT_HIDE,0xFFFFFF);
190
			DefineButton(pos_x+2, pos_y, name_len + 27, 16, 100+i+BT_HIDE,0xFFFFFF);
190
			_PutImage(pos_x + 5, pos_y, 18,17, is_active*6+dev_icon*17*18*3+#devices);
191
			_PutImage(pos_x + 5, pos_y, 18,17, is_active*6+dev_icon*17*18*3+#devices);
191
			WriteText(pos_x + 24, pos_y+5, 0x80, 0, #dev_name);
192
			WriteText(pos_x + 24, pos_y+1, 10110000b, 0, #dev_name+1);
192
			pos_x += strlen(#dev_name)*6 + 29;
193
			pos_x += name_len + 31;
193
		}
194
		}
194
	}
195
	}
195
	if (two_panels)
196
	if (two_panels)
196
	{
197
	{
197
		DrawBar(pos_x, pos_y, Form.cwidth - pos_x - 2, 17, 0xFFFFFF);
198
		DrawBar(pos_x, pos_y, Form.cwidth - pos_x - 2, 17, 0xFFFFFF);