aboutsummaryrefslogtreecommitdiff
path: root/subprojects/d2tk/test/mock.c
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/d2tk/test/mock.c')
-rw-r--r--subprojects/d2tk/test/mock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/subprojects/d2tk/test/mock.c b/subprojects/d2tk/test/mock.c
index 95ef666..7e77a43 100644
--- a/subprojects/d2tk/test/mock.c
+++ b/subprojects/d2tk/test/mock.c
@@ -45,7 +45,9 @@ _d2tk_mock_post(void *data, d2tk_core_t *core, d2tk_coord_t w, d2tk_coord_t h,
assert(h == DIM_H);
assert(pass == 0);
- assert(d2tk_core_get_pixels(core));
+ d2tk_rect_t rect;
+ assert(d2tk_core_get_pixels(core, &rect));
+ assert( (rect.w != 0) && (rect.h != 0) );
return false; // do NOT enter 3rd pass
}