diff options
Diffstat (limited to 'src/painter.c')
-rw-r--r-- | src/painter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/painter.c b/src/painter.c index c0e93ea..9dabeb8 100644 --- a/src/painter.c +++ b/src/painter.c @@ -185,7 +185,7 @@ unsigned long painter_register_text(struct text *txt) sfText_setCharacterSize(t->text, txt->size); sfVector2f pos = (sfVector2f){.x = txt->pos.x, .y = txt->pos.y}; sfText_setPosition(t->text, pos); - sfText_setString(t->text, txt->text); + sfText_setUnicodeString(t->text, (unsigned int *)txt->text); last->obj = t; return last->id; @@ -201,7 +201,7 @@ void painter_update_text(unsigned long id, struct text *txt) sfText_setCharacterSize(t->text, txt->size); sfVector2f pos = (sfVector2f){.x = txt->pos.x, .y = txt->pos.y}; sfText_setPosition(t->text, pos); - sfText_setString(t->text, txt->text); + sfText_setUnicodeString(t->text, (unsigned int *)txt->text); } static void draw_text_drawable(struct drawable *d) |