summaryrefslogtreecommitdiff
path: root/helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'helpers.c')
-rw-r--r--helpers.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/helpers.c b/helpers.c
index e64fefd..2883f62 100644
--- a/helpers.c
+++ b/helpers.c
@@ -35,4 +35,12 @@ static void DrawBlendedBackground(cPixmap *pixmap, tColor color, tColor colorBle
if (i == end)
cont = false;
}
+}
+
+static int Minimum(int a, int b, int c, int d) {
+ int min = a;
+ if (b < min) min = b;
+ if (c < min) min = c;
+ if (d < min) min = d;
+ return min;
} \ No newline at end of file