Subversion Repositories Kolibri OS

Rev

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

Rev 9044 Rev 9277
Line 132... Line 132...
132
 
132
 
Line 133... Line 133...
133
void _SystemDiscs::DrawOptions(int draw_x)
133
void _SystemDiscs::DrawOptions(int draw_x)
134
{
134
{
135
	int optionsy = SELECTY+KFM2_DEVH+1;
135
	int optionsy = SELECTY+KFM2_DEVH+1;
136
	char dev_name[15], disc_name[100], i, dev_icon, is_active=0;
136
	char dev_name[15], disc_name[100], volume_label[64], label_file_name[100];
-
 
137
	char i, dev_icon, is_active=0;
Line 137... Line 138...
137
		
138
		
Line 138... Line 139...
138
	SystemDiscs.Get();
139
	SystemDiscs.Get();
Line 147... Line 148...
147
		DrawBar(draw_x, optionsy, DDW, KFM2_DEVH, 0xFFFFFF);
148
		DrawBar(draw_x, optionsy, DDW, KFM2_DEVH, 0xFFFFFF);
148
		DefineButton(draw_x, optionsy, DDW, KFM2_DEVH-1, 100+i+BT_HIDE,0xFFFFFF);
149
		DefineButton(draw_x, optionsy, DDW, KFM2_DEVH-1, 100+i+BT_HIDE,0xFFFFFF);
149
		_PutImage(draw_x + 5, optionsy+2, 18,17, is_active*7+dev_icon*17*18*3+#devices);
150
		_PutImage(draw_x + 5, optionsy+2, 18,17, is_active*7+dev_icon*17*18*3+#devices);
150
		if (is_active) kfont.bold = true;
151
		if (is_active) kfont.bold = true;
-
 
152
		//strncpy(#volume_label, GetVolumeLabel(#dev_name), sizeof(volume_label));
-
 
153
		strcpy(#label_file_name, #dev_name);
-
 
154
		//if (dev_name[1]!='k') && (dev_name[2]!='y') {
-
 
155
		//	if (volume_label) sprintf(#label_file_name, "%s [%s]", #dev_name, #volume_label);
-
 
156
		//} 
151
		kfont.WriteIntoWindow(draw_x + 24, optionsy+2, 0xFFFfff, 0x000000, kfont.size.pt, #dev_name+1);
157
		kfont.WriteIntoWindow(draw_x + 24, optionsy+2, 0xFFFfff, 0x000000, kfont.size.pt, #label_file_name+1);
152
		kfont.bold = false;
158
		kfont.bold = false;
153
		optionsy += KFM2_DEVH;
159
		optionsy += KFM2_DEVH;
154
	}
160
	}
155
}
161
}