0003-Always-enable-viewport-stuff.patch 1.1 KB

1234567891011121314151617181920212223242526272829
  1. From 6ca3c5f3430043074f7299cb1c3ba7f453ff7b5f Mon Sep 17 00:00:00 2001
  2. From: Vincent Lang <vincent@plexapp.com>
  3. Date: Wed, 29 Jul 2015 21:27:34 +0200
  4. Subject: [PATCH] Always enable viewport stuff
  5. Normally, applications can configure this by changing the command
  6. line passed to QApplication/QtWebEngine, but this doesn't work on
  7. Windows. So we change these directly.
  8. ---
  9. src/core/web_engine_context.cpp | 3 +++
  10. 1 file changed, 3 insertions(+)
  11. diff --git a/qtwebengine/src/core/web_engine_context.cpp b/qtwebengine/src/core/web_engine_context.cpp
  12. index 8bc0473..88b6245 100644
  13. --- a/qtwebengine/src/core/web_engine_context.cpp
  14. +++ b/qtwebengine/src/core/web_engine_context.cpp
  15. @@ -231,6 +231,9 @@ WebEngineContext::WebEngineContext()
  16. parsedCommandLine->AppendSwitchASCII(switches::kProfilerTiming, switches::kProfilerTimingDisabledValue);
  17. #endif
  18. + parsedCommandLine->AppendSwitch(switches::kEnableViewport);
  19. + parsedCommandLine->AppendSwitch(switches::kEnableViewportMeta);
  20. +
  21. GLContextHelper::initialize();
  22. if (usingANGLE() || usingSoftwareDynamicGL() || usingQtQuick2DRenderer()) {
  23. --
  24. 2.4.6