* 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:
Axel Dörfler 2009-07-31 21:29:40 +00:00
parent e90b90daf6
commit a717876d04

View File

@ -11,6 +11,7 @@
#include "gtf.h" #include "gtf.h"
#include <InterfaceDefs.h> #include <InterfaceDefs.h>
#include <String.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
@ -345,20 +346,55 @@ ScreenMode::GetMonitorInfo(monitor_info& info, float* _diagonalInches)
// TODO: replace more vendor strings with something readable // TODO: replace more vendor strings with something readable
switch (id) { switch (id) {
case 'ADI\0':
strcpy(info.vendor, "ADI MicroScan");
break;
case 'AUO\0':
strcpy(info.vendor, "AU Optronics");
break;
case 'BNQ\0': case 'BNQ\0':
strcpy(info.vendor, "BenQ"); strcpy(info.vendor, "BenQ");
break; 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': case 'LEN\0':
strcpy(info.vendor, "Lenovo"); strcpy(info.vendor, "Lenovo");
break; break;
case 'PHL\0':
strcpy(info.vendor, "Philips");
break;
case 'QDS\0':
strcpy(info.vendor, "Quanta Display");
break;
case 'SAM\0': case 'SAM\0':
strcpy(info.vendor, "Samsung"); strcpy(info.vendor, "Samsung");
break; break;
case 'SHP\0':
strcpy(info.vendor, "Sharp");
break;
case 'VIZ\0':
strcpy(info.vendor, "Vizio");
break;
case 'VSC\0': case 'VSC\0':
strcpy(info.vendor, "ViewSonic"); strcpy(info.vendor, "ViewSonic");
break; 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; return B_OK;
} }