summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-11-27 21:15:47 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-11-27 21:18:55 +0100
commit51171a71169599043bb8cf7255030acf81178b4b (patch)
treebab4f00473903cad86ae604c923b69e113444afd /vcl
parent5b5d154d0b2de8a3a9d82e0a078cf7e835062d13 (diff)
fix few problems
Change-Id: I4216ec60c7cf07bd92a157f4a86e2560cdbdca93
Diffstat (limited to 'vcl')
-rw-r--r--vcl/opengl/win/WinDeviceInfo.cxx28
1 files changed, 12 insertions, 16 deletions
diff --git a/vcl/opengl/win/WinDeviceInfo.cxx b/vcl/opengl/win/WinDeviceInfo.cxx
index 86614e83405e..0a11426e2348 100644
--- a/vcl/opengl/win/WinDeviceInfo.cxx
+++ b/vcl/opengl/win/WinDeviceInfo.cxx
@@ -343,6 +343,7 @@ bool ParseDriverVersion(const OUString& aVersion, uint64_t *aNumericVersion)
template<typename T> void appendIntegerWithPadding(OUString& rString, T value, sal_uInt32 nChars)
{
+ rString += "0x";
OUString aValue = OUString::number(value, 16);
sal_Int32 nLength = aValue.getLength();
sal_uInt32 nPadLength = nChars - nLength;
@@ -572,6 +573,7 @@ WinOpenGLDeviceInfo::WinOpenGLDeviceInfo():
mbRDP(false)
{
GetData();
+ FillBlacklist();
}
WinOpenGLDeviceInfo::~WinOpenGLDeviceInfo()
@@ -616,36 +618,35 @@ bool WinOpenGLDeviceInfo::FindBlocklistedDeviceInList()
}
}
-#if defined(XP_WIN) || defined(ANDROID)
switch (maDriverInfo[i].meComparisonOp) {
- case DRIVER_LESS_THAN:
+ case wgl::DRIVER_LESS_THAN:
match = driverVersion < maDriverInfo[i].mnDriverVersion;
break;
- case DRIVER_LESS_THAN_OR_EQUAL:
+ case wgl::DRIVER_LESS_THAN_OR_EQUAL:
match = driverVersion <= maDriverInfo[i].mnDriverVersion;
break;
- case DRIVER_GREATER_THAN:
+ case wgl::DRIVER_GREATER_THAN:
match = driverVersion > maDriverInfo[i].mnDriverVersion;
break;
- case DRIVER_GREATER_THAN_OR_EQUAL:
+ case wgl::DRIVER_GREATER_THAN_OR_EQUAL:
match = driverVersion >= maDriverInfo[i].mnDriverVersion;
break;
- case DRIVER_EQUAL:
+ case wgl::DRIVER_EQUAL:
match = driverVersion == maDriverInfo[i].mnDriverVersion;
break;
- case DRIVER_NOT_EQUAL:
+ case wgl::DRIVER_NOT_EQUAL:
match = driverVersion != maDriverInfo[i].mnDriverVersion;
break;
- case DRIVER_BETWEEN_EXCLUSIVE:
+ case wgl::DRIVER_BETWEEN_EXCLUSIVE:
match = driverVersion > maDriverInfo[i].mnDriverVersion && driverVersion < maDriverInfo[i].mnDriverVersionMax;
break;
- case DRIVER_BETWEEN_INCLUSIVE:
+ case wgl::DRIVER_BETWEEN_INCLUSIVE:
match = driverVersion >= maDriverInfo[i].mnDriverVersion && driverVersion <= maDriverInfo[i].mnDriverVersionMax;
break;
- case DRIVER_BETWEEN_INCLUSIVE_START:
+ case wgl::DRIVER_BETWEEN_INCLUSIVE_START:
match = driverVersion >= maDriverInfo[i].mnDriverVersion && driverVersion < maDriverInfo[i].mnDriverVersionMax;
break;
- case DRIVER_COMPARISON_IGNORED:
+ case wgl::DRIVER_COMPARISON_IGNORED:
// We don't have a comparison op, so we match everything.
match = true;
break;
@@ -653,11 +654,6 @@ bool WinOpenGLDeviceInfo::FindBlocklistedDeviceInList()
SAL_WARN("vcl.opengl", "Bogus op in GfxDriverInfo");
break;
}
-#else
- // We don't care what driver version it was. We only check OS version and if
- // the device matches.
- match = true;
-#endif
if (match || maDriverInfo[i].mnDriverVersion == wgl::DriverInfo::allDriverVersions) {
match = true;