summaryrefslogtreecommitdiffstats
path: root/src/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/text.c b/src/text.c
index b9a0afb..695d5aa 100644
--- a/src/text.c
+++ b/src/text.c
@@ -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;