aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2018-12-30 18:29:11 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2018-12-30 18:29:11 +0100
commitc37e1e28f4f62132777ba0140cc5832fe8bf9a7a (patch)
tree0a3b740bc9c98841211b8a427b0f45be5ee92549 /example
parentcad5a3c852c6cda635179986a5bdaeae47fa4baa (diff)
downloadd2tk-c37e1e28f4f62132777ba0140cc5832fe8bf9a7a.tar.xz
all: prototype image sprite.
Diffstat (limited to 'example')
-rw-r--r--example/example.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/example/example.c b/example/example.c
index 73b93dd..490ec59 100644
--- a/example/example.c
+++ b/example/example.c
@@ -306,7 +306,8 @@ _render_c_scroll(d2tk_base_t *base, const d2tk_rect_t *rect)
char lbl [32];
const size_t lbl_len = snprintf(lbl, sizeof(lbl), "%u-%03u", j, k);
- if(d2tk_base_button_label_is_changed( base, id, lbl_len, lbl, bnd))
+ if(d2tk_base_button_label_image_is_changed( base, id, lbl_len, lbl,
+ -1, "libre-arrow-circle-right.png", bnd))
{
fprintf(stdout, "button %016"PRIx64" DOWN\n", id);
}