diff options
author | scuri <scuri> | 2011-09-30 19:45:49 +0000 |
---|---|---|
committer | scuri <scuri> | 2011-09-30 19:45:49 +0000 |
commit | ab4d7bfdd3bdc646635e32b185bbe097ff262316 (patch) | |
tree | 52d5ab9dfcbeb560fda5be1ef94d1cc440a161c9 /test/simple | |
parent | 18dc8b841de3c7acf274fe4a2fb21a37091c6cb0 (diff) |
Fixed: PutImageRGBA and Pattern when using the Cairo context plus base driver for the Cairo 1.10 version.HEADoriginmaster
Diffstat (limited to 'test/simple')
-rw-r--r-- | test/simple/config.mak | 1 | ||||
-rw-r--r-- | test/simple/simple.c | 6 |
2 files changed, 4 insertions, 3 deletions
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); |