aboutsummaryrefslogtreecommitdiff
path: root/src/backend_nanovg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend_nanovg.c')
-rw-r--r--src/backend_nanovg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend_nanovg.c b/src/backend_nanovg.c
index ad48e16..fe5d377 100644
--- a/src/backend_nanovg.c
+++ b/src/backend_nanovg.c
@@ -742,8 +742,7 @@ d2tk_nanovg_process(void *data, d2tk_core_t *core, const d2tk_com_t *com,
{
const d2tk_body_bitmap_t *body = &com->body->bitmap;
- const size_t rgba_sz = body->surf.stride * body->surf.h;
- const uint64_t hash = d2tk_hash(body->surf.argb, rgba_sz);
+ const uint64_t hash = d2tk_hash(&body->surf, sizeof(body->surf));
uintptr_t *sprite = d2tk_core_get_sprite(core, hash, SPRITE_TYPE_IMG);
assert(sprite);