aboutsummaryrefslogtreecommitdiff
path: root/test/core.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-01-29 19:24:30 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-01-29 19:24:30 +0100
commit754381112f2e15cee18f749b1d69a5b85b7c5a2c (patch)
treefe525a75f62c65a7d45ec057cdae4231a81100cc /test/core.c
parent3fa9621be81696891c286bd8d5f446a32c5c46bf (diff)
downloadd2tk-754381112f2e15cee18f749b1d69a5b85b7c5a2c.tar.xz
core: pack everything into a parent bbox.
Diffstat (limited to 'test/core.c')
-rw-r--r--test/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core.c b/test/core.c
index 62b63c3..e5247f2 100644
--- a/test/core.c
+++ b/test/core.c
@@ -104,7 +104,7 @@ _d2tk_mock_process(void *data, d2tk_core_t *core, const d2tk_com_t *com,
assert(sprite != d2tk_core_get_sprite(core, ~body->hash, 0));
unsigned num = 0;
- D2TK_COM_FOREACH(com, bbox)
+ D2TK_COM_FOREACH_CONST(com, bbox)
{
ctx->check(bbox, &body->clip);
num += 1;
@@ -149,7 +149,7 @@ _d2tk_mock_process_triple(void *data, d2tk_core_t *core, const d2tk_com_t *com,
assert(sprite != d2tk_core_get_sprite(core, ~body->hash, 0));
unsigned num = 0;
- D2TK_COM_FOREACH(com, bbox)
+ D2TK_COM_FOREACH_CONST(com, bbox)
{
ctx->check(bbox, &body->clip);
num += 1;