aboutsummaryrefslogtreecommitdiff
path: root/src/button.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-19 11:32:34 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-19 11:32:34 +0200
commite96f9f3869c6ea5803f5759bf1737547a46be22f (patch)
treee070f699751eebad032a47f118293ef219f1e147 /src/button.c
parent0d1af7a8c8e163250e940833d646a12852aa9e5b (diff)
downloadjwm-e96f9f3869c6ea5803f5759bf1737547a46be22f.tar.gz
Change function declaration style
This is a very sweeping change, but I feel that it is necessary.
Diffstat (limited to 'src/button.c')
-rw-r--r--src/button.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/button.c b/src/button.c
index 0d62742..ca40644 100644
--- a/src/button.c
+++ b/src/button.c
@@ -16,7 +16,9 @@ static void GetScaledIconSize(IconNode *ip, int maxsize,
/***************************************************************************
***************************************************************************/
-void DrawButton(ButtonNode *bp) {
+void
+DrawButton(ButtonNode *bp)
+{
long outlinePixel;
long topPixel, bottomPixel;
@@ -161,7 +163,9 @@ void DrawButton(ButtonNode *bp) {
/***************************************************************************
***************************************************************************/
-void ResetButton(ButtonNode *bp, Drawable d, GC g) {
+void
+ResetButton(ButtonNode *bp, Drawable d, GC g)
+{
Assert(bp);
@@ -181,8 +185,10 @@ void ResetButton(ButtonNode *bp, Drawable d, GC g) {
/***************************************************************************
***************************************************************************/
-void GetScaledIconSize(IconNode *ip, int maxsize,
- int *width, int *height) {
+void
+GetScaledIconSize(IconNode *ip, int maxsize,
+ int *width, int *height)
+{
double ratio;