diff options
-rw-r--r-- | src/text.c | 10 | ||||
-rw-r--r-- | src/text.h | 4 |
2 files changed, 7 insertions, 7 deletions
@@ -31,15 +31,15 @@ struct text { const char *string; - int width; - int height; + size_t width; + size_t height; }; struct text * text_new(const char *string) { struct text *text; - int width; + size_t width; int eol; if (!string) { @@ -82,13 +82,13 @@ text_new(const char *string) return text; } -int +size_t text_get_width(struct text *text) { return text->width; } -int +size_t text_get_height(struct text *text) { return text->height; @@ -31,10 +31,10 @@ struct text; struct text * text_new(const char *string); -int +size_t text_get_width(struct text *text) __attribute__((pure)); -int +size_t text_get_height(struct text *text) __attribute__((pure)); void |