[cairo-commit] cairo-demo/qcairo ChangeLog, 1.2, 1.3 qcairowidget.cpp, 1.2, 1.3

Behdad Esfahbod commit at pdx.freedesktop.org
Wed Aug 24 16:13:53 PDT 2005


Committed by: behdad

Update of /cvs/cairo/cairo-demo/qcairo
In directory gabe:/tmp/cvs-serv21369

Modified Files:
	ChangeLog qcairowidget.cpp 
Log Message:
2005-08-24  Behdad Esfahbod  <behdad at behdad.org>

        * qcairowidget.cpp: Use Qt platform-specific wrappers instead of Xlib.
        Patch from Mauricio Piacentini.



Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo-demo/qcairo/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ChangeLog	19 Aug 2005 20:37:33 -0000	1.2
+++ ChangeLog	24 Aug 2005 23:13:50 -0000	1.3
@@ -1,3 +1,8 @@
+2005-08-24  Behdad Esfahbod  <behdad at behdad.org>
+
+	* qcairowidget.cpp: Use Qt platform-specific wrappers instead of Xlib.
+	Patch from Mauricio Piacentini.
+
 2005-08-19  Behdad Esfahbod  <behdad at behdad.org>
 
 	* Updated to latest Cairo interface.  Patch from Mauricio Piacentini.

Index: qcairowidget.cpp
===================================================================
RCS file: /cvs/cairo/cairo-demo/qcairo/qcairowidget.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- qcairowidget.cpp	19 Aug 2005 20:37:33 -0000	1.2
+++ qcairowidget.cpp	24 Aug 2005 23:13:50 -0000	1.3
@@ -4,11 +4,7 @@
     : QWidget( parent, name )
 {
     setDoubleBuffered( true );
-    
-    Display *dpy = x11AppDisplay();
-    Drawable drw = handle();
-    m_surf = cairo_xlib_surface_create (dpy, drw, 
-                DefaultVisual (dpy, DefaultScreen (dpy)), width(), height() );
+    m_surf = cairo_xlib_surface_create ((Display *) x11AppDisplay(), (Drawable) handle(), (Visual *) x11Visual(), width(), height() );
     m_cr = cairo_create(m_surf);
     cairo_surface_destroy(m_surf);
 }



More information about the cairo-commit mailing list