From cbf1d4dfa095bc1fae927228ad108b6086738f01 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sun, 8 Jul 2018 13:05:27 +1000 Subject: Added type gFont to replace V2.x font_t --- src/gwin/gwin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gwin/gwin.c') diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c index 1f2d44b0..dfd17f66 100644 --- a/src/gwin/gwin.c +++ b/src/gwin/gwin.c @@ -33,7 +33,7 @@ static const gwinVMT basegwinVMT = { static gColor defaultFgColor = GFX_WHITE; static gColor defaultBgColor = GFX_BLACK; #if GDISP_NEED_TEXT - static font_t defaultFont; + static gFont defaultFont; #endif /* These init functions are defined by each module but not published */ @@ -178,11 +178,11 @@ gColor gwinGetDefaultBgColor(void) { } #if GDISP_NEED_TEXT - void gwinSetDefaultFont(font_t font) { + void gwinSetDefaultFont(gFont font) { defaultFont = font; } - font_t gwinGetDefaultFont(void) { + gFont gwinGetDefaultFont(void) { return defaultFont; } #endif @@ -218,7 +218,7 @@ gBool gwinGetEnabled(GHandle gh) { } #if GDISP_NEED_TEXT - void gwinSetFont(GHandle gh, font_t font) { + void gwinSetFont(GHandle gh, gFont font) { gh->font = font; } #endif -- cgit v1.2.3