aboutsummaryrefslogtreecommitdiff
path: root/libs/libgui/gfx.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libgui/gfx.c')
-rw-r--r--libs/libgui/gfx.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libs/libgui/gfx.c b/libs/libgui/gfx.c
index f16b8dd..913fe59 100644
--- a/libs/libgui/gfx.c
+++ b/libs/libgui/gfx.c
@@ -457,14 +457,8 @@ void gfx_fill(struct gfx_context *ctx, u32 c)
gfx_draw_rectangle(ctx, vec2(0, 0), vec2(ctx->size.x, ctx->size.y), c);
}
-int gfx_font_height(enum font_type font_type)
+vec2 gfx_font_size(enum font_type font_type)
{
struct gfx_font *font = gfx_resolve_font(font_type);
- return font->size.y;
-}
-
-int gfx_font_width(enum font_type font_type)
-{
- struct gfx_font *font = gfx_resolve_font(font_type);
- return font->size.x;
+ return font->size;
}