␉␉position_t p = pos( gui.screen.width / 2 + 1 , ( gui.devicelist.pos.y + 3 ) + ( ( gui.devicelist.height - gui.devicelist.iconspacing ) / 2 ) );␊ |
␉␊ |
␉␉char dummy[80];␊ |
␉␉getBootVolumeDescription( gBootVolume, dummy, 79, true );␊ |
␉␉getBootVolumeDescription( gBootVolume, dummy, sizeof(dummy)-1, true );␊ |
␉␉drawDeviceIcon( gBootVolume, gui.screen.pixmap, p, false );␊ |
␉␉drawStrCenteredAt( (char *) msg, &font_small, gui.screen.pixmap, gui.countdown.pos );␊ |
␉␉␊ |
|
␉␉␉strlcpy(prompt, val, cnt);␊ |
␉␉} else {␊ |
␉␉␉name = malloc(80);␊ |
␉␉␉getBootVolumeDescription(gBootVolume, name, 79, false);␊ |
␉␉␉getBootVolumeDescription(gBootVolume, name, sizeof(name)-1, false);␊ |
␉␉␉prompt = malloc(256);␊ |
␉␉␉sprintf(prompt, "Press any key to start up from %s, or press F8 to enter startup options.", name);␊ |
␉␉␉free(name);␊ |