[SCM] calf/master: + GUI: another attempt at reverse mode
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:38:01 UTC 2013
The following commit has been merged in the master branch:
commit 8de27cc24a02c110babb8e6c92295387744afeef
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Thu Oct 30 23:44:45 2008 +0000
+ GUI: another attempt at reverse mode
diff --git a/src/custom_ctl.cpp b/src/custom_ctl.cpp
index 65a60af..7a3c77e 100644
--- a/src/custom_ctl.cpp
+++ b/src/custom_ctl.cpp
@@ -207,8 +207,10 @@ calf_vumeter_expose (GtkWidget *widget, GdkEventExpose *event)
r *= 0.5, g *= 0.5, b *= 0.5;
break;
case VU_MONOCHROME_REVERSE:
- ts = 1 - ts;
- // fall through
+ r = 1, g = 1, b = 0;
+ if (!(vu->value < ts || vu->value <= 0))
+ r *= 0.5, g *= 0.5, b *= 0.5;
+ break;
case VU_MONOCHROME:
r = 1, g = 1, b = 0;
if (vu->value < ts || vu->value <= 0)
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list