diff options
author | Marvin Borner | 2021-06-23 22:05:11 +0200 |
---|---|---|
committer | Marvin Borner | 2021-06-23 22:05:11 +0200 |
commit | af338d77ee7f6469530233a70ccb450171ec5c66 (patch) | |
tree | c02c86bc53908e62fee829ea8416854f229c7233 /libs/libgui/gfx.c | |
parent | 73a55007a44d23be40be681c4882fd6ad1e30b60 (diff) |
Started widgets and layout stuff
Diffstat (limited to 'libs/libgui/gfx.c')
-rw-r--r-- | libs/libgui/gfx.c | 10 |
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; } |