Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
51171a71
Kaydet (Commit)
51171a71
authored
Kas 27, 2014
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix few problems
Change-Id: I4216ec60c7cf07bd92a157f4a86e2560cdbdca93
üst
5b5d154d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
16 deletions
+12
-16
WinDeviceInfo.cxx
vcl/opengl/win/WinDeviceInfo.cxx
+12
-16
No files found.
vcl/opengl/win/WinDeviceInfo.cxx
Dosyayı görüntüle @
51171a71
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment