summaryrefslogtreecommitdiffstats
path: root/tests/png.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-04 21:53:55 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-04 21:53:55 +0000
commit8085395acc28d8c77901615f8862ceeda5773b09 (patch)
treec8261638a486191a3c2cea1ed91590f8104878c7 /tests/png.c
parentd3ad0b6a25146318d153ecd6c792e41a9a0a6025 (diff)
downloaddimension-8085395acc28d8c77901615f8862ceeda5773b09.tar.xz
New interface for optimizing canvas conversions by registering
dmnsn_set_pixel() callbacks.
Diffstat (limited to 'tests/png.c')
-rw-r--r--tests/png.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/png.c b/tests/png.c
index 3d46f38..d93b913 100644
--- a/tests/png.c
+++ b/tests/png.c
@@ -47,6 +47,12 @@ main() {
return EXIT_FAILURE;
}
+ if (dmnsn_png_optimize_canvas(canvas) != 0) {
+ dmnsn_delete_canvas(canvas);
+ fprintf(stderr, "--- Couldn't optimize canvas for PNG! ---\n");
+ return EXIT_FAILURE;
+ }
+
for (i = 0; i < x; ++i) {
for (j = 0; j < y; ++j) {
/*