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/screen.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'src/screen.c') diff --git a/src/screen.c b/src/screen.c index cc2b8fd..d62c1d5 100644 --- a/src/screen.c +++ b/src/screen.c @@ -13,13 +13,17 @@ static int screenCount; /**************************************************************************** ****************************************************************************/ -void InitializeScreens() { +void +InitializeScreens() +{ screens = NULL; } /**************************************************************************** ****************************************************************************/ -void StartupScreens() { +void +StartupScreens() +{ #ifdef USE_XINERAMA XineramaScreenInfo *info; @@ -67,7 +71,9 @@ void StartupScreens() { /**************************************************************************** ****************************************************************************/ -void ShutdownScreens() { +void +ShutdownScreens() +{ if(screens) { Release(screens); screens = NULL; @@ -76,7 +82,9 @@ void ShutdownScreens() { /**************************************************************************** ****************************************************************************/ -void DestroyScreens() { +void +DestroyScreens() +{ } /**************************************************************************** @@ -129,7 +137,9 @@ const ScreenType *GetScreen(int index) { /**************************************************************************** ****************************************************************************/ -int GetScreenCount() { +int +GetScreenCount() +{ return screenCount; -- cgit v1.2.3