summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/kdegraphics/kdegraphics-3.5.12-kgamma_opendisplay.patch
diff options
context:
space:
mode:
authorTim Williams <tmw@autotrain.org>2011-10-17 18:47:27 +0100
committerTim Williams <tmw@autotrain.org>2011-10-17 18:47:27 +0100
commit76ef832ce5348d12a871223d4c034c7daeaddb82 (patch)
tree7024a1f39a6114daa8c5ed24bb31a8687c832b9a /mandriva/2010.2/kdegraphics/kdegraphics-3.5.12-kgamma_opendisplay.patch
parentec2515f058c60d2478a549f58376db628ba556b9 (diff)
downloadtde-packaging-76ef832ce5348d12a871223d4c034c7daeaddb82.tar.gz
tde-packaging-76ef832ce5348d12a871223d4c034c7daeaddb82.zip
Adding the remaining Mandriva patches and spec files
Diffstat (limited to 'mandriva/2010.2/kdegraphics/kdegraphics-3.5.12-kgamma_opendisplay.patch')
-rw-r--r--mandriva/2010.2/kdegraphics/kdegraphics-3.5.12-kgamma_opendisplay.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/mandriva/2010.2/kdegraphics/kdegraphics-3.5.12-kgamma_opendisplay.patch b/mandriva/2010.2/kdegraphics/kdegraphics-3.5.12-kgamma_opendisplay.patch
new file mode 100644
index 000000000..84caebc90
--- /dev/null
+++ b/mandriva/2010.2/kdegraphics/kdegraphics-3.5.12-kgamma_opendisplay.patch
@@ -0,0 +1,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() {