Subversion Repositories Kolibri OS

Rev

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

Rev 5698 Rev 5703
Line 110... Line 110...
110
 
110
 
111
 
111
 
112
void DrawSystemDiscs()
112
void DrawSystemDiscs()
113
{    
113
{    
Line 114... Line 114...
114
	char dev_name[15], disc_name[100], i, dev_icon, is_active;
114
	char dev_name[15], disc_name[100], i, dev_icon, is_active;
115
	int pos_y, pos_x;
115
	int pos_y, pos_x=2;
116
	
116
	
117
	for (i=disc_num; i<30; i++) DeleteButton(100+i);
117
	for (i=disc_num; i<30; i++) DeleteButton(100+i);
Line 178... Line 178...
178
			}
178
			}
179
			_PutImage(23,pos_y, 18,17, is_active*6+dev_icon*17*18*3+#devices);
179
			_PutImage(23,pos_y, 18,17, is_active*6+dev_icon*17*18*3+#devices);
180
		}
180
		}
181
		else
181
		else
182
		{
182
		{
183
			pos_y = 41;
183
			pos_y = 43;
184
			pos_x = i*80 + files.x;
-
 
185
			DrawBar(pos_x, pos_y, 80, 17, 0xFFFFFF);
184
			DrawBar(pos_x, pos_y, 80, 17, 0xFFFFFF);
186
			DefineButton(pos_x, pos_y, 79, 16, 100+i+BT_HIDE,0xFFFFFF);
185
			DefineButton(pos_x+2, pos_y, strlen(#dev_name)*6 + 33, 16, 100+i+BT_HIDE,0xFFFFFF);
187
			_PutImage(pos_x + 5, pos_y, 18,17, is_active*6+dev_icon*17*18*3+#devices);
186
			_PutImage(pos_x + 5, pos_y, 18,17, is_active*6+dev_icon*17*18*3+#devices);
188
			WriteText(pos_x + 24, pos_y+5, 0x80, 0, #dev_name);
187
			WriteText(pos_x + 24, pos_y+5, 0x80, 0, #dev_name);
-
 
188
			pos_x += strlen(#dev_name)*6 + 37;
189
		}
189
		}
190
	}
190
	}
-
 
191
	if (two_panels)
-
 
192
	{
191
	if (two_panels) DrawBar(pos_x + 80, pos_y, files.x + files.w - pos_x - 80 + 17, 17, system.color.work);
193
		DrawBar(pos_x, pos_y, Form.cwidth - pos_x - 2, 17, 0xFFFFFF);
-
 
194
		DrawBar(2, pos_y-2, Form.cwidth - 4, 2, 0xFFFFFF);
-
 
195
		DrawBar(2, pos_y+17, Form.cwidth - 4, 2, 0xFFFFFF);
-
 
196
	}
192
}
197
}
Line 193... Line 198...
193
 
198
 
194
 
199