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
ae177f5b
Kaydet (Commit)
ae177f5b
authored
Ara 18, 2014
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
Ara 18, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ifix the OpenGL UI config part
Change-Id: I931a4b618f35188e4e0cca07305ff15bbbacc20a
üst
146bd125
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
optgdlg.cxx
cui/source/options/optgdlg.cxx
+1
-1
OpenGLHelper.cxx
vcl/source/opengl/OpenGLHelper.cxx
+17
-2
No files found.
cui/source/options/optgdlg.cxx
Dosyayı görüntüle @
ae177f5b
...
...
@@ -146,7 +146,7 @@ OpenGLCfg::~OpenGLCfg()
boost
::
shared_ptr
<
comphelper
::
ConfigurationChanges
>
batch
(
comphelper
::
ConfigurationChanges
::
create
()
);
officecfg
::
Office
::
Common
::
VCL
::
UseOpenGL
::
set
(
mbUseOpenGL
,
batch
);
officecfg
::
Office
::
Common
::
VCL
::
ForceOpenGL
::
set
(
mbForceOpenGL
,
batch
);
batch
->
commit
();
}
}
...
...
vcl/source/opengl/OpenGLHelper.cxx
Dosyayı görüntüle @
ae177f5b
...
...
@@ -401,6 +401,17 @@ bool OpenGLHelper::supportsVCLOpenGL()
bool
OpenGLHelper
::
isVCLOpenGLEnabled
()
{
/**
* The !bSet part should only be called once! Changing the results in the same
* run will mix OpenGL and normal rendering.
*/
static
bool
bSet
=
false
;
static
bool
bEnable
=
false
;
static
bool
bForceOpenGL
=
false
;
if
(
bSet
)
{
return
bForceOpenGL
||
bEnable
;
}
/*
* There are a number of cases that these environment variables cover:
* * SAL_FORCEGL forces OpenGL independent of any other option
...
...
@@ -408,16 +419,20 @@ bool OpenGLHelper::isVCLOpenGLEnabled()
* * SAL_ENABLEGL overrides VCL_HIDE_WINDOWS and the configuration variable
* * the configuration variable is checked if no environment variable is set
*/
static
bool
bForceOpenGL
=
!!
getenv
(
"SAL_FORCEGL"
)
||
officecfg
::
Office
::
Common
::
VCL
::
ForceOpenGL
::
get
();
bSet
=
true
;
bForceOpenGL
=
!!
getenv
(
"SAL_FORCEGL"
)
||
officecfg
::
Office
::
Common
::
VCL
::
ForceOpenGL
::
get
();
if
(
bForceOpenGL
)
return
true
;
if
(
!
supportsVCLOpenGL
())
{
return
false
;
}
static
bool
bEnableGLEnv
=
!!
getenv
(
"SAL_ENABLEGL"
);
b
ool
b
Enable
=
bEnableGLEnv
;
bEnable
=
bEnableGLEnv
;
static
bool
bDuringBuild
=
getenv
(
"VCL_HIDE_WINDOWS"
);
if
(
bDuringBuild
&&
!
bEnable
/* env. enable overrides */
)
...
...
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