summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2012-11-29 07:05:54 +0100
committerhorchi <vdr@jwendel.de>2012-11-29 07:05:54 +0100
commit3a2a85db5e18c027c84ec6a40dfe0babfa9dae98 (patch)
treeeac9664f899ad56de9cfef6c73edcefed09d4f96 /common.c
parent6f0d9df3807c95e2c10549a0c578d5c1a6d2fa91 (diff)
downloadvdr-plugin-seduatmo-3a2a85db5e18c027c84ec6a40dfe0babfa9dae98.tar.gz
vdr-plugin-seduatmo-3a2a85db5e18c027c84ec6a40dfe0babfa9dae98.tar.bz2
added rainbow fader
Diffstat (limited to 'common.c')
-rw-r--r--common.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/common.c b/common.c
index 524e614..d457a6a 100644
--- a/common.c
+++ b/common.c
@@ -78,3 +78,19 @@ MsTime msNow()
return tv.tv_sec * 1000 + tv.tv_usec / 1000;
}
+
+//***************************************************************************
+//
+//***************************************************************************
+
+int minMax(int x, int min, int max)
+{
+ if (x < min)
+ return min;
+
+ if (max < x)
+ return max;
+
+ return x;
+}
+