← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~mzibricky/openlp/bug-907857 into lp:openlp

 

matysek has proposed merging lp:~mzibricky/openlp/bug-907857 into lp:openlp.

Requested reviews:
  OpenLP Core (openlp-core)
Related bugs:
  Bug #907857 in OpenLP: "display screen broken on Mac OS X (opengl)"
  https://bugs.launchpad.net/openlp/+bug/907857

For more details, see:
https://code.launchpad.net/~mzibricky/openlp/bug-907857/+merge/86735

Fix for display screen on mac.
-- 
https://code.launchpad.net/~mzibricky/openlp/bug-907857/+merge/86735
Your team OpenLP Core is requested to review the proposed merge of lp:~mzibricky/openlp/bug-907857 into lp:openlp.
=== modified file 'openlp/core/ui/maindisplay.py'
--- openlp/core/ui/maindisplay.py	2011-12-22 13:23:04 +0000
+++ openlp/core/ui/maindisplay.py	2011-12-22 18:35:29 +0000
@@ -30,6 +30,7 @@
 """
 import logging
 import os
+import sys
 
 from PyQt4 import QtCore, QtGui, QtWebKit, QtOpenGL
 from PyQt4.phonon import Phonon
@@ -61,7 +62,12 @@
         self.controller = controller
         self.screen = {}
         self.plugins = PluginManager.get_instance().plugins
-        self.setViewport(QtOpenGL.QGLWidget())
+        # FIXME: On Mac OS X (tested on 10.7) the display screen is corrupt with
+        # OpenGL. Only white blank screen is shown on the 2nd monitor all the
+        # time. We need to investigate more how to use OpenGL properly on Mac OS
+        # X.
+        if sys.platform != 'darwin':
+            self.setViewport(QtOpenGL.QGLWidget())
 
     def setup(self):
         """


Follow ups