summaryrefslogtreecommitdiffstats
path: root/libdimension/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-05-20 13:49:41 -0600
committerTavian Barnes <tavianator@gmail.com>2011-05-20 13:49:41 -0600
commitad716acc7fa7fd151ff96fe6d17f0ba1a3a66379 (patch)
tree810d04a5e8892aaa5f82c486b272d93f6cfd50b4 /libdimension/tests
parent5770d22635a63fb745bc0f3cd3dee573a6b356b6 (diff)
downloaddimension-ad716acc7fa7fd151ff96fe6d17f0ba1a3a66379.tar.xz
Add a refcount to canvases.
Diffstat (limited to 'libdimension/tests')
-rw-r--r--libdimension/tests/render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/tests/render.c b/libdimension/tests/render.c
index a487224..f35f5bb 100644
--- a/libdimension/tests/render.c
+++ b/libdimension/tests/render.c
@@ -40,7 +40,7 @@ dmnsn_new_test_scene(void)
);
/* Allocate a canvas */
- scene->canvas = dmnsn_new_canvas(768, 480);
+ dmnsn_scene_set_canvas(scene, dmnsn_new_canvas(768, 480));
/* Set up the transformation matrix for the perspective camera */
dmnsn_matrix trans = dmnsn_scale_matrix(