mirror of
https://github.com/86Box/86Box.git
synced 2026-02-24 20:35:32 -07:00
Qt: Display names of internal sound/video devices when possible
This commit is contained in:
@@ -106,6 +106,9 @@ SettingsDisplay::onCurrentMachineChanged(int machineId)
|
||||
}
|
||||
|
||||
if (video_card_available(c) && device_is_valid(video_dev, machineId)) {
|
||||
if (c == 1 && machine_get_vid_device(machineId)) {
|
||||
name += QString(" (%1)").arg(DeviceConfig::DeviceName(machine_get_vid_device(machineId), machine_get_vid_device(machineId)->internal_name, 0));
|
||||
}
|
||||
int row = Models::AddEntry(model, name, c);
|
||||
if (c == curVideoCard) {
|
||||
selectedRow = row - removeRows;
|
||||
|
||||
Reference in New Issue
Block a user