diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-09-03 00:30:28 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-09-03 09:37:33 +0000 |
commit | 055f76b8f1897b79cc5f153da55e38b95ca551a2 (patch) | |
tree | 76511a7e0d4f5bc6036305fa6abe912e0f2c6573 /cui | |
parent | f7bc163ca4f643b6f046892de6d99ec8049b6955 (diff) |
tdf#93870 - GL accel. via VCL canvas for presentations when GL enabled.
Change-Id: Ia31a88cb3d9e6baa987b22f77f407a3f592031f1
Reviewed-on: https://gerrit.libreoffice.org/18285
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/about.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/optgdlg.cxx | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index 8f5caf680ac1..7dec2934519e 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -48,7 +48,7 @@ #include <rtl/ustrbuf.hxx> #include <vcl/bitmap.hxx> #include <officecfg/Office/Common.hxx> -#include <vcl/opengl/OpenGLHelper.hxx> +#include <vcl/opengl/OpenGLWrapper.hxx> using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; @@ -295,7 +295,7 @@ OUString AboutDialog::GetVersionString() sVersion += m_sBuildStr.replaceAll("$BUILDID", sBuildId); } - if (OpenGLHelper::isVCLOpenGLEnabled()) + if (OpenGLWrapper::isVCLOpenGLEnabled()) { sVersion += "-GL"; } diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index 1a292768ff14..e869664e532f 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -89,6 +89,7 @@ #include <vcl/svapp.hxx> #include <vcl/settings.hxx> #include <vcl/IconThemeInfo.hxx> +#include <vcl/opengl/OpenGLWrapper.hxx> #include "optgdlg.hxx" #include <svx/ofaitem.hxx> @@ -522,7 +523,10 @@ CanvasSettings::CanvasSettings() : bool CanvasSettings::IsHardwareAccelerationAvailable() const { - if( !mbHWAccelChecked ) + if( OpenGLWrapper::isVCLOpenGLEnabled() ) + mbHWAccelAvailable = false; + + else if( !mbHWAccelChecked ) { mbHWAccelChecked = true; |