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

Proposed by matysek
Status: Merged
Approved by: Raoul Snyman
Approved revision: 1853
Merged at revision: 1853
Proposed branch: lp:~mzibricky/openlp/bug-907857
Merge into: lp:openlp
Diff against target: 25 lines (+7/-1)
1 file modified
openlp/core/ui/maindisplay.py (+7/-1)
To merge this branch: bzr merge lp:~mzibricky/openlp/bug-907857
Reviewer Review Type Date Requested Status
Raoul Snyman Approve
Jonathan Corwin (community) Approve
Review via email: mp+86735@code.launchpad.net

Description of the change

Fix for display screen on mac.

To post a comment you must log in.
Revision history for this message
Jonathan Corwin (j-corwin) :
review: Approve
Revision history for this message
Raoul Snyman (raoul-snyman) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openlp/core/ui/maindisplay.py'
2--- openlp/core/ui/maindisplay.py 2011-12-22 13:23:04 +0000
3+++ openlp/core/ui/maindisplay.py 2011-12-22 18:35:29 +0000
4@@ -30,6 +30,7 @@
5 """
6 import logging
7 import os
8+import sys
9
10 from PyQt4 import QtCore, QtGui, QtWebKit, QtOpenGL
11 from PyQt4.phonon import Phonon
12@@ -61,7 +62,12 @@
13 self.controller = controller
14 self.screen = {}
15 self.plugins = PluginManager.get_instance().plugins
16- self.setViewport(QtOpenGL.QGLWidget())
17+ # FIXME: On Mac OS X (tested on 10.7) the display screen is corrupt with
18+ # OpenGL. Only white blank screen is shown on the 2nd monitor all the
19+ # time. We need to investigate more how to use OpenGL properly on Mac OS
20+ # X.
21+ if sys.platform != 'darwin':
22+ self.setViewport(QtOpenGL.QGLWidget())
23
24 def setup(self):
25 """