* Removed the questionable "found" stuff from GetMonitorInfo(); even if there
is no model name, the info is still useful (this also affects saving by monitor). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32032 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2001-2008, Haiku.
|
||||
* Copyright 2001-2009, Haiku.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -934,7 +934,6 @@ AccelerantHWInterface::GetMonitorInfo(monitor_info* info)
|
||||
info->width = edid.display.h_size;
|
||||
info->height = edid.display.v_size;
|
||||
|
||||
uint32 found = 0;
|
||||
for (uint32 i = 0; i < EDID1_NUM_DETAILED_MONITOR_DESC; ++i) {
|
||||
edid1_detailed_monitor *monitor = &edid.detailed_monitor[i];
|
||||
|
||||
@@ -942,13 +941,11 @@ AccelerantHWInterface::GetMonitorInfo(monitor_info* info)
|
||||
case EDID1_SERIAL_NUMBER:
|
||||
strlcpy(info->serial_number, monitor->data.serial_number,
|
||||
sizeof(info->serial_number));
|
||||
found++;
|
||||
break;
|
||||
|
||||
case EDID1_MONITOR_NAME:
|
||||
strlcpy(info->name, monitor->data.monitor_name,
|
||||
sizeof(info->name));
|
||||
found++;
|
||||
break;
|
||||
|
||||
case EDID1_MONITOR_RANGES:
|
||||
@@ -975,7 +972,7 @@ AccelerantHWInterface::GetMonitorInfo(monitor_info* info)
|
||||
}
|
||||
}
|
||||
|
||||
return found > 0 ? B_OK : B_NAME_NOT_FOUND;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user