From e96f9f3869c6ea5803f5759bf1737547a46be22f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 19 Jul 2021 11:32:34 +0200 Subject: Change function declaration style This is a very sweeping change, but I feel that it is necessary. --- src/font.c | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) (limited to 'src/font.c') diff --git a/src/font.c b/src/font.c index 8ebf19a..d296589 100644 --- a/src/font.c +++ b/src/font.c @@ -23,7 +23,9 @@ static GC fontGC; /**************************************************************************** ****************************************************************************/ -void InitializeFonts() { +void +InitializeFonts() +{ int x; @@ -36,7 +38,9 @@ void InitializeFonts() { /**************************************************************************** ****************************************************************************/ -void StartupFonts() { +void +StartupFonts() +{ #ifndef USE_XFT XGCValues gcValues; @@ -102,7 +106,9 @@ void StartupFonts() { /**************************************************************************** ****************************************************************************/ -void ShutdownFonts() { +void +ShutdownFonts() +{ int x; @@ -128,7 +134,9 @@ void ShutdownFonts() { /**************************************************************************** ****************************************************************************/ -void DestroyFonts() { +void +DestroyFonts() +{ int x; @@ -143,7 +151,9 @@ void DestroyFonts() { /**************************************************************************** ****************************************************************************/ -int GetStringWidth(FontType type, const char *str) { +int +GetStringWidth(FontType type, const char *str) +{ #ifdef USE_XFT XGlyphInfo extents; @@ -171,7 +181,9 @@ int GetStringWidth(FontType type, const char *str) { /**************************************************************************** ****************************************************************************/ -int GetStringHeight(FontType type) { +int +GetStringHeight(FontType type) +{ Assert(fonts[type]); @@ -181,7 +193,9 @@ int GetStringHeight(FontType type) { /**************************************************************************** ****************************************************************************/ -void SetFont(FontType type, const char *value) { +void +SetFont(FontType type, const char *value) +{ if(!value) { Warning("empty Font tag"); @@ -198,8 +212,10 @@ void SetFont(FontType type, const char *value) { /**************************************************************************** ****************************************************************************/ -void RenderString(Drawable d, FontType font, ColorType color, - int x, int y, int width, Region region, const char *str) { +void +RenderString(Drawable d, FontType font, ColorType color, + int x, int y, int width, Region region, const char *str) +{ #ifdef USE_XFT XftDraw *xd; -- cgit v1.2.3