summaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2017-12-02 10:35:47 +0300
committerOxore <oxore@protonmail.com>2017-12-02 10:35:47 +0300
commit3768cde7594ee1c39b09e14369452652282e66e8 (patch)
tree5d925a33484adcd3a0b4dca2904b3ba865c62544 /src/text.c
parent0bdb97ed81ec84bd587c08f1726b86af6d268d08 (diff)
Apply loading from yaml file for texts in menu
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text.c b/src/text.c
index c922f34..8932496 100644
--- a/src/text.c
+++ b/src/text.c
@@ -210,7 +210,7 @@ void _loadText_initSfText(Text *objo, void *obji)
int size = _loadText_getInt(obji, "size");
char *text = _loadText_getString(obji, "text");
objo->sfText = sfText_create();
- //sfText_setFont(objo->sfText, fontScore);
+ sfText_setFont(objo->sfText, fontScore);
sfText_setCharacterSize(objo->sfText, size);
sfText_setPosition(objo->sfText, pos);
sfText_setString(objo->sfText, text);
@@ -242,7 +242,7 @@ void Text_free(Text *obj)
free(obj->scene);
free(obj->text);
free(obj->font);
- //sfText_destroy(obj->sfText);
+ sfText_destroy(obj->sfText);
free(obj);
}