Subversion Repositories Kolibri OS

Rev

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

Rev 5482 Rev 5484
Line 213... Line 213...
213
unsigned int disk_pos_y[]={60,95,130, 60, 95, 130, 60, 95,130, 60, 85,130};
213
unsigned int disk_pos_y[]={60,95,130, 60, 95, 130, 60, 95,130, 60, 85,130};
Line 214... Line 214...
214
 
214
 
215
void DrawTmpDisks()
215
void DrawTmpDisks()
216
{
216
{
217
	char free_ram_text[60];
217
	char free_ram_text[60];
218
	int i;
218
	byte i, real_id;
Line 219... Line 219...
219
	int FreeRAM=GetFreeRAM()/1024;
219
	int FreeRAM=GetFreeRAM()/1024;
220
 
220
 
221
	DrawBar(0,51, Form.cwidth,Form.cheight-TOPPANELH-BOTPANELH-2, 0xFFFFFF);
221
	DrawBar(0,51, Form.cwidth,Form.cheight-TOPPANELH-BOTPANELH-2, 0xFFFFFF);
Line 236... Line 236...
236
	for (i=0; i<10; i++) DeleteButton(20+i);
236
	for (i=0; i<10; i++) DeleteButton(20+i);
237
	for (i=0; i
237
	for (i=0; i
238
	{
238
	{
239
		DefineButton(disk_pos_x[i], disk_pos_y[i], 65, 30, 20+i, 0xFFFfff);
239
		DefineButton(disk_pos_x[i], disk_pos_y[i], 65, 30, 20+i, 0xFFFfff);
240
		WriteText(disk_pos_x[i]+25,disk_pos_y[i]+6,  0x90, 0, #disk_list[i].Item);
240
		WriteText(disk_pos_x[i]+25,disk_pos_y[i]+6,  0x90, 0, #disk_list[i].Item);
-
 
241
		real_id = disk_list[i].Item[3] - '0';
241
		WriteText(disk_pos_x[i]+25,disk_pos_y[i]+19, 0x80, 0x888888, ConvertSize(disk_sizes[i]));
242
		WriteText(disk_pos_x[i]+25,disk_pos_y[i]+19, 0x80, 0x888888, ConvertSize(disk_sizes[real_id]));
242
		_PutImage(disk_pos_x[i]+5,disk_pos_y[i]+4, 14,14, 2*14*14*3+#icons);
243
		_PutImage(disk_pos_x[i]+5,disk_pos_y[i]+4, 14,14, 2*14*14*3+#icons);
243
		if (selected==i) DrawRectangle(disk_pos_x[i], disk_pos_y[i], 65-1, 30-1, 0x00459A);
244
		if (selected==i) DrawRectangle(disk_pos_x[i], disk_pos_y[i], 65-1, 30-1, 0x00459A);
244
	}
245
	}
245
}
246
}