summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/kdegraphics/kdegraphics-3.5.12-kgamma_opendisplay.patch
blob: 84caebc901367c4355fad4d45a8be9eeb6c5eb83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- kgamma/kcmkgamma/xvidextwrap.cpp.orig	2010-08-13 10:03:09.000000000 +0100
+++ kgamma/kcmkgamma/xvidextwrap.cpp	2011-07-20 15:25:44.133775992 +0100
@@ -16,6 +16,7 @@
  ***************************************************************************/
 #include <tqnamespace.h>
 #include <tqevent.h>
+#include <tqwindowdefs.h>
 
 #include <X11/Xos.h>
 #include <X11/Xlib.h>
@@ -47,7 +48,8 @@
 
 
 XVidExtWrap::XVidExtWrap(bool* OK, const char* displayname) {
-  if ((dpy = XOpenDisplay(displayname))) {
+  dpy = qt_xdisplay();
+  if (dpy) {
     screen = DefaultScreen(dpy);
     setGammaLimits(0.1, 10.0);
     *OK = true;
@@ -59,7 +61,7 @@
 }
 
 XVidExtWrap::~XVidExtWrap() {
-  if (dpy) XCloseDisplay(dpy);
+
 }
 
 int XVidExtWrap::_DefaultScreen() {