From ab4d7bfdd3bdc646635e32b185bbe097ff262316 Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 30 Sep 2011 19:45:49 +0000 Subject: Fixed: PutImageRGBA and Pattern when using the Cairo context plus base driver for the Cairo 1.10 version. --- test/simple/config.mak | 1 + test/simple/simple.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/simple/config.mak b/test/simple/config.mak index b0d39bc..09e0029 100644 --- a/test/simple/config.mak +++ b/test/simple/config.mak @@ -61,6 +61,7 @@ else ifndef GDK_CAIRO SLIB += $(CDLIB)/libcdcontextplus.a LIBS = Xrender Xft +# USE_CAIRO=Yes endif ifdef USE_OPENGL SLIB += $(CDLIB)/libcdgl.a $(CDLIB)/libftgl.a diff --git a/test/simple/simple.c b/test/simple/simple.c index f3b17fe..3f8cf83 100644 --- a/test/simple/simple.c +++ b/test/simple/simple.c @@ -964,9 +964,9 @@ void SimpleDrawAll(cdCanvas* canvas) // cdPutImageRectRGB(16, 16, red, green, blue, 10, 10, 608, 608, 5, 10, 5, 10); // cdPutImageRectRGB(16, 16, red, green, blue, 10, 10, 64, 64, 5, 10, 5, 10); -// cdPutImageRGB(IMAGE_SIZE, IMAGE_SIZE, red, green, blue, 100, h - 200, IMAGE_SIZE, IMAGE_SIZE); -// cdPutImageRGBA(IMAGE_SIZE, IMAGE_SIZE, red, green, blue, alpha, 100, h - 200, IMAGE_SIZE, IMAGE_SIZE); -// cdPutImageRGB(IMAGE_SIZE, IMAGE_SIZE, red, green, blue, w - 400, h - 310, 3*IMAGE_SIZE, 3*IMAGE_SIZE); +// cdCanvasPutImageRectRGB(canvas, IMAGE_SIZE, IMAGE_SIZE, red, green, blue, 100, h - 200, IMAGE_SIZE, IMAGE_SIZE, 0, 0, 0, 0); +// cdCanvasPutImageRectRGBA(canvas, IMAGE_SIZE, IMAGE_SIZE, red, green, blue, alpha, 100, h - 200, IMAGE_SIZE, IMAGE_SIZE, 0, 0, 0, 0); +// cdCanvasPutImageRectRGB(canvas, IMAGE_SIZE, IMAGE_SIZE, red, green, blue, w - 400, h - 310, 3*IMAGE_SIZE, 3*IMAGE_SIZE, 0, 0, 0, 0); /* Draw the image on the top-right corner but increasing its actual size, and uses its full area */ cdCanvasPutImageRectRGBA(canvas, IMAGE_SIZE, IMAGE_SIZE, red, green, blue, alpha, w - 400, h - 310, 3*IMAGE_SIZE, 3*IMAGE_SIZE, 0, 0, 0, 0); -- cgit v1.2.3