summaryrefslogtreecommitdiffstats
path: root/tests/png.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-04-12 15:42:04 +0000
committerTavian Barnes <tavianator@gmail.com>2009-04-12 15:42:04 +0000
commit4f9f95a05a41bfbcc9965eaaf7f2d14c6af9f261 (patch)
treec5d3d649d36e6102708d0f86edb87499e1ff8c3e /tests/png.c
parent510c9a95fb5f3f4a40a19ce66c95344c2013085f (diff)
downloaddimension-4f9f95a05a41bfbcc9965eaaf7f2d14c6af9f261.tar.xz
Write C++ libdimension-png wrapper.
Diffstat (limited to 'tests/png.c')
-rw-r--r--tests/png.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/png.c b/tests/png.c
index b7edd95..0ee7edb 100644
--- a/tests/png.c
+++ b/tests/png.c
@@ -33,7 +33,7 @@ int main() {
dmnsn_sRGB sRGB;
FILE *ofile, *ifile;
unsigned int i, j;
- const unsigned int x = 300, y = 300;
+ const unsigned int x = 333, y = 300;
dmnsn_set_resilience(DMNSN_SEVERITY_LOW);
@@ -121,7 +121,7 @@ int main() {
return EXIT_FAILURE;
}
- if (dmnsn_png_read_canvas(&canvas, ifile)) {
+ if (!(canvas = dmnsn_png_read_canvas(ifile))) {
fprintf(stderr, "--- Reading canvas failed! ---\n");
return EXIT_FAILURE;
}