* Added some more vendor names, taken from the syslog data in our bug
tracker :-) * Improved monitor name, based on that data as well. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32036 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e90b90daf6
commit
a717876d04
@ -11,6 +11,7 @@
|
||||
#include "gtf.h"
|
||||
|
||||
#include <InterfaceDefs.h>
|
||||
#include <String.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
@ -345,20 +346,55 @@ ScreenMode::GetMonitorInfo(monitor_info& info, float* _diagonalInches)
|
||||
|
||||
// TODO: replace more vendor strings with something readable
|
||||
switch (id) {
|
||||
case 'ADI\0':
|
||||
strcpy(info.vendor, "ADI MicroScan");
|
||||
break;
|
||||
case 'AUO\0':
|
||||
strcpy(info.vendor, "AU Optronics");
|
||||
break;
|
||||
case 'BNQ\0':
|
||||
strcpy(info.vendor, "BenQ");
|
||||
break;
|
||||
case 'EMA\0':
|
||||
strcpy(info.vendor, "eMachines");
|
||||
break;
|
||||
case 'FUS\0':
|
||||
strcpy(info.vendor, "Fujitsu-Siemens");
|
||||
break;
|
||||
case 'GSM\0':
|
||||
strcpy(info.vendor, "LG");
|
||||
break;
|
||||
case 'LEN\0':
|
||||
strcpy(info.vendor, "Lenovo");
|
||||
break;
|
||||
case 'PHL\0':
|
||||
strcpy(info.vendor, "Philips");
|
||||
break;
|
||||
case 'QDS\0':
|
||||
strcpy(info.vendor, "Quanta Display");
|
||||
break;
|
||||
case 'SAM\0':
|
||||
strcpy(info.vendor, "Samsung");
|
||||
break;
|
||||
case 'SHP\0':
|
||||
strcpy(info.vendor, "Sharp");
|
||||
break;
|
||||
case 'VIZ\0':
|
||||
strcpy(info.vendor, "Vizio");
|
||||
break;
|
||||
case 'VSC\0':
|
||||
strcpy(info.vendor, "ViewSonic");
|
||||
break;
|
||||
}
|
||||
|
||||
// Remove extraneous vendor strings and whitespace
|
||||
|
||||
BString name(info.name);
|
||||
name.IReplaceAll(info.vendor, "");
|
||||
name.Trim();
|
||||
|
||||
strcpy(info.name, name.String());
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user