diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-10-30 01:13:34 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-10-30 01:13:34 -0400 |
commit | d615d6795ee81e59795081b7fb2524978b6aa9cb (patch) | |
tree | 5ba19b6c55df2332ff71a795f11f590caf59c16d /dimension/main.c | |
parent | f5f8d18d86e15e0bd14f955768edb616e1357a66 (diff) | |
download | dimension-d615d6795ee81e59795081b7fb2524978b6aa9cb.tar.xz |
(Sort of) parse boxes.
Diffstat (limited to 'dimension/main.c')
-rw-r--r-- | dimension/main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dimension/main.c b/dimension/main.c index 990ee14..5d921e7 100644 --- a/dimension/main.c +++ b/dimension/main.c @@ -145,11 +145,14 @@ main(int argc, char **argv) { * Now we render the scene */ + if (dmnsn_png_optimize_canvas(scene->canvas) != 0) { + fprintf(stderr, "WARNING: Couldn't optimize canvas for PNG\n"); + } + if (dmnsn_raytrace_scene(scene) != 0) { - dmnsn_delete_scene(scene); + dmnsn_delete_realized_scene(scene); dmnsn_error(DMNSN_SEVERITY_HIGH, "Error rendering scene."); } - dmnsn_delete_scene(scene); /* Open the output file */ output_file = fopen(output, "wb"); @@ -163,6 +166,6 @@ main(int argc, char **argv) { } fclose(output_file); - /* Clean up and exit! */ + dmnsn_delete_realized_scene(scene); return EXIT_SUCCESS; } |