Kaydet (Commit) 4c12222b authored tarafından László Németh's avatar László Németh Kaydeden (comit) Andras Timar

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/18014Reviewed-by: 's avatarTor Lillqvist <tml@collabora.com>
Tested-by: 's avatarTor Lillqvist <tml@collabora.com>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 31dd460c
...@@ -70,6 +70,7 @@ $(eval $(call gb_Library_use_externals,cui,\ ...@@ -70,6 +70,7 @@ $(eval $(call gb_Library_use_externals,cui,\
boost_headers \ boost_headers \
icuuc \ icuuc \
icu_headers \ icu_headers \
glew \
)) ))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include <vcl/bitmap.hxx> #include <vcl/bitmap.hxx>
#include <officecfg/Office/Common.hxx> #include <officecfg/Office/Common.hxx>
#include <vcl/opengl/OpenGLHelper.hxx>
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans; using namespace ::com::sun::star::beans;
...@@ -296,6 +297,11 @@ OUString AboutDialog::GetVersionString() ...@@ -296,6 +297,11 @@ OUString AboutDialog::GetVersionString()
sVersion += m_sBuildStr.replaceAll("$BUILDID", sBuildId); sVersion += m_sBuildStr.replaceAll("$BUILDID", sBuildId);
} }
if (OpenGLHelper::isVCLOpenGLEnabled())
{
sVersion += "-GL";
}
if (EXTRA_BUILDID[0] != '\0') if (EXTRA_BUILDID[0] != '\0')
{ {
sVersion += "\n" EXTRA_BUILDID; sVersion += "\n" EXTRA_BUILDID;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment