Use the speed and drive chosen when burning, and add a speed convert function.
This commit is contained in:
@@ -563,27 +563,14 @@ ecdb_gui_combo_header_from_speeds(Evas_Object *c, const char *name, void *data,
|
||||
Evas_Object *ret;
|
||||
Ecdb_Drive_Info *drive;
|
||||
char buf[1024];
|
||||
int i, num_speeds, count;
|
||||
|
||||
drive = data;
|
||||
|
||||
if (!drive)
|
||||
return NULL;
|
||||
|
||||
num_speeds = drive->write_speeds[0];
|
||||
count = 1;
|
||||
sel++;
|
||||
for (i = 1; i < num_speeds; i++)
|
||||
{
|
||||
if ((drive->write_speeds[i]) <= 0)
|
||||
continue;
|
||||
if (count == sel)
|
||||
break;
|
||||
count++;
|
||||
}
|
||||
|
||||
ret = ecdb_label_add(c, name);
|
||||
snprintf(buf, sizeof(buf), "%d", drive->write_speeds[count]);
|
||||
snprintf(buf, sizeof(buf), "%d", ecdb_speed_convert(drive, sel));
|
||||
ecdb_label_text_set(ret, buf);
|
||||
evas_object_show(ret);
|
||||
|
||||
|
Reference in New Issue
Block a user