aboutsummaryrefslogtreecommitdiff
path: root/subprojects/d2tk/src/base_custom.c
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/d2tk/src/base_custom.c')
-rw-r--r--subprojects/d2tk/src/base_custom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/subprojects/d2tk/src/base_custom.c b/subprojects/d2tk/src/base_custom.c
index c001e5a..2396530 100644
--- a/subprojects/d2tk/src/base_custom.c
+++ b/subprojects/d2tk/src/base_custom.c
@@ -18,12 +18,12 @@
#include "base_internal.h"
D2TK_API void
-d2tk_base_custom(d2tk_base_t *base, uint32_t size, const void *data,
+d2tk_base_custom(d2tk_base_t *base, uint64_t dhash, const void *data,
const d2tk_rect_t *rect, d2tk_core_custom_t custom)
{
const d2tk_hash_dict_t dict [] = {
{ rect, sizeof(d2tk_rect_t) } ,
- { data, size }, //FIXME
+ { &dhash, sizeof(uint64_t)},
{ NULL, 0 }
};
const uint64_t hash = d2tk_hash_dict(dict);
@@ -34,7 +34,7 @@ d2tk_base_custom(d2tk_base_t *base, uint32_t size, const void *data,
{
const size_t ref = d2tk_core_bbox_push(core, true, rect);
- d2tk_core_custom(core, rect, size, data, custom);
+ d2tk_core_custom(core, rect, dhash, data, custom);
d2tk_core_bbox_pop(core, ref);
}