aboutsummaryrefslogtreecommitdiff
path: root/test/core.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2020-09-16 22:06:39 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2020-09-16 22:06:39 +0200
commitfe78d43a38e7d166e315f070d8dc4d1fc07b8cf7 (patch)
tree23ff90652237ddf2317e17e91b08b3cb54843740 /test/core.c
parent7272863902d25a8f161b908fc7b20cd41902d73c (diff)
downloadd2tk-fe78d43a38e7d166e315f070d8dc4d1fc07b8cf7.tar.xz
core: add rect argument to custom callback.
Diffstat (limited to 'test/core.c')
-rw-r--r--test/core.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/core.c b/test/core.c
index a7dc40b..1dbd622 100644
--- a/test/core.c
+++ b/test/core.c
@@ -1246,9 +1246,14 @@ _test_bitmap()
#define CUSTOM_DATA NULL
static void
-_custom(void *ctx, uint32_t size, const void *data)
+_custom(void *ctx, const d2tk_rect_t *rect, uint32_t size, const void *data)
{
assert(ctx == NULL);
+ assert(rect != NULL);
+ assert(rect->x == CUSTOM_X);
+ assert(rect->y == CUSTOM_Y);
+ assert(rect->w == CUSTOM_W);
+ assert(rect->h == CUSTOM_H);
assert(size == CUSTOM_SIZE);
assert(data == CUSTOM_DATA);
}