[cairo-commit] rcairo/src rb_cairo_surface.c,1.14,1.15

Kouhei Sutou commit at pdx.freedesktop.org
Fri Jan 11 03:28:30 PST 2008


Committed by: kou

Update of /cvs/cairo/rcairo/src
In directory kemper:/tmp/cvs-serv26284/src

Modified Files:
	rb_cairo_surface.c 
Log Message:
* src/rb_cairo_surface.c: cleanup.


Index: rb_cairo_surface.c
===================================================================
RCS file: /cvs/cairo/rcairo/src/rb_cairo_surface.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- rb_cairo_surface.c	11 Jan 2008 08:03:39 -0000	1.14
+++ rb_cairo_surface.c	11 Jan 2008 11:28:26 -0000	1.15
@@ -870,15 +870,15 @@
   width = NUM2UINT (rb_width);
   height = NUM2UINT (rb_height);
 
-  if (objc_object != nil)
+  if (objc_object == nil)
     {
-      context = (CGContextRef)objc_object;
-      surface = cairo_quartz_surface_create_for_cg_context (context,
-                                                            width, height);
+      surface = cairo_quartz_surface_create (format, width, height);
     }
   else
     {
-      surface = cairo_quartz_surface_create (format, width, height);
+      context = (CGContextRef)objc_object;
+      surface =
+        cairo_quartz_surface_create_for_cg_context (context, width, height);
     }
 
   cr_surface_check_status (surface);



More information about the cairo-commit mailing list