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/outline.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'src/outline.c') diff --git a/src/outline.c b/src/outline.c index b42e70a..03b7ad9 100644 --- a/src/outline.c +++ b/src/outline.c @@ -15,12 +15,16 @@ static int outlineDrawn; /**************************************************************************** ****************************************************************************/ -void InitializeOutline() { +void +InitializeOutline() +{ } /**************************************************************************** ****************************************************************************/ -void StartupOutline() { +void +StartupOutline() +{ XGCValues gcValues; @@ -35,18 +39,24 @@ void StartupOutline() { /**************************************************************************** ****************************************************************************/ -void ShutdownOutline() { +void +ShutdownOutline() +{ JXFreeGC(display, outlineGC); } /**************************************************************************** ****************************************************************************/ -void DestroyOutline() { +void +DestroyOutline() +{ } /**************************************************************************** ****************************************************************************/ -void DrawOutline(int x, int y, int width, int height) { +void +DrawOutline(int x, int y, int width, int height) +{ if(!outlineDrawn) { JXSync(display, False); JXGrabServer(display); @@ -61,7 +71,9 @@ void DrawOutline(int x, int y, int width, int height) { /**************************************************************************** ****************************************************************************/ -void ClearOutline() { +void +ClearOutline() +{ if(outlineDrawn) { JXDrawRectangle(display, rootWindow, outlineGC, lastX, lastY, lastWidth, lastHeight); -- cgit v1.2.3