[cairo] cairo-demo/quartz needs a small fix
Stephen Sinclair
radarsat1 at gmail.com
Tue Feb 6 15:45:21 PST 2007
Hi,
I've been playing with Cairo on OS X. There is a nice little
demonstration program called QuartzCairoTest (or, "fdclock") in the
cairo-demo module.
It currently needs two little fixes:
* The call to cairo_quartz_surface_create is missing the last parameter.
* The makefile has LDFLAGS in the wrong place, so it doesn't link properly.
I'd like to make a little tutorial on cairo under OS X, but this demo
doesn't work "out of the box", so I was hoping the CVS could be fixed.
Here is a patch:
diff -ru cairo-demo.orig/quartz/Makefile cairo-demo/quartz/Makefile
--- cairo-demo.orig/quartz/Makefile 2005-01-20 23:00:33.000000000 -0500
+++ cairo-demo/quartz/Makefile 2007-02-06 18:32:51.000000000 -0500
@@ -11,7 +11,7 @@
fdlogo.o: fdlogo.c fdlogo.h
fdclock: main.o fdface.o fdhand.o fdlogo.o
- ${CC} ${LDFLAGS} -o $@ $^ -framework Carbon
+ ${CC} -o $@ $^ ${LDFLAGS} -framework Carbon
clean:
rm -f fdclock *.o
diff -ru cairo-demo.orig/quartz/main.c cairo-demo/quartz/main.c
--- cairo-demo.orig/quartz/main.c 2005-05-11 18:40:18.000000000 -0400
+++ cairo-demo/quartz/main.c 2007-02-06 18:28:36.000000000 -0500
@@ -62,7 +62,7 @@
QDBeginCGContext(GetWindowPort(window), &context);
- surface = cairo_quartz_surface_create(context, width, height);
+ surface = cairo_quartz_surface_create(context, width,
height, true);
cr = cairo_create(surface);
More information about the cairo
mailing list