diff options
author | László Németh <laszlo.nemeth@collabora.com> | 2015-08-26 12:25:14 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-08-31 15:11:38 +0200 |
commit | 4c12222b0c5af463ef9d9f752904d5f9d2d1c87c (patch) | |
tree | 62a2a9c77ace70585cbe3a3b75d6374b5a4e164d /cui | |
parent | 31dd460c4cd4fc9017590805003e47c0200a618f (diff) |
tdf#93620: show OpenGL status in Help->About
Build ID will show enabled OpenGL with an extra string "-GL"
helping the fix of rendering issues.
Change-Id: Id7bf2db2edb165542bf7a2a253c698c494278a03
Reviewed-on: https://gerrit.libreoffice.org/18014
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/Library_cui.mk | 1 | ||||
-rw-r--r-- | cui/source/dialogs/about.cxx | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/cui/Library_cui.mk b/cui/Library_cui.mk index 833af3ccadc8..64f75aa41a70 100644 --- a/cui/Library_cui.mk +++ b/cui/Library_cui.mk @@ -70,6 +70,7 @@ $(eval $(call gb_Library_use_externals,cui,\ boost_headers \ icuuc \ icu_headers \ + glew \ )) ifeq ($(OS),WNT) diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index 630dd30e9725..e5732b226690 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -48,6 +48,7 @@ #include <rtl/ustrbuf.hxx> #include <vcl/bitmap.hxx> #include <officecfg/Office/Common.hxx> +#include <vcl/opengl/OpenGLHelper.hxx> using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; @@ -296,6 +297,11 @@ OUString AboutDialog::GetVersionString() sVersion += m_sBuildStr.replaceAll("$BUILDID", sBuildId); } + if (OpenGLHelper::isVCLOpenGLEnabled()) + { + sVersion += "-GL"; + } + if (EXTRA_BUILDID[0] != '\0') { sVersion += "\n" EXTRA_BUILDID; |