diff options
| author | Jörg Wendel <wendel@vdr.wendel.private> | 2012-11-30 08:01:21 +0100 |
|---|---|---|
| committer | Jörg Wendel <wendel@vdr.wendel.private> | 2012-11-30 08:01:21 +0100 |
| commit | 753ededc8d86f211a2eb270725049cfac974dc23 (patch) | |
| tree | fc8013edab2cd2cb994dc26e09c8858a28e7aa7b | |
| parent | 68f042c36873ca31cc9b5c6b99886dbbe297a438 (diff) | |
| parent | 1d7bf13433c66651d581f30ecf5c942cef1ec311 (diff) | |
| download | vdr-plugin-seduatmo-753ededc8d86f211a2eb270725049cfac974dc23.tar.gz vdr-plugin-seduatmo-753ededc8d86f211a2eb270725049cfac974dc23.tar.bz2 | |
Merge branch 'develop' of projects.vdr-developer.org:vdr-plugin-seduatmo into develop
| -rw-r--r-- | common.c | 4 | ||||
| -rw-r--r-- | common.h | 4 | ||||
| -rw-r--r-- | seduservice.c | 4 |
3 files changed, 6 insertions, 6 deletions
@@ -94,12 +94,12 @@ int minMax(int x, int min, int max) return x; } -double _min(double a, double b) +double min(double a, double b) { return a < b ? a : b; } -double _max(double a, double b) +double max(double a, double b) { return a >= b ? a : b; } @@ -32,8 +32,8 @@ enum Misc int minMax(int x, int min, int max); int getrand(int min, int max); -float _min(float a, float b); -float _max(float a, float b); +double min(double a, double b); +double max(double a, double b); //*************************************************************************** // Time diff --git a/seduservice.c b/seduservice.c index 74d88f9..1f241da 100644 --- a/seduservice.c +++ b/seduservice.c @@ -43,8 +43,8 @@ void cSeduService::rgb2hsv(int r, int g, int b, double* h, double* s, double* v) rc = (double)r / 255.0; gc = (double)g / 255.0; bc = (double)b / 255.0; - maxC = _max(rc, _max(gc, bc)); - minC = _min(rc, _min(gc, bc)); + maxC = max(rc, max(gc, bc)); + minC = min(rc, min(gc, bc)); delta = maxC - minC; *v = maxC; |
