Fix whitespace.
[ardour.git] / libs / canvas / colors.cc
index b96c609a85c64579f4c57ba598e5ecae8c9cbc08..d83c471c2face7481c16210db55075f63d75a2f1 100644 (file)
@@ -35,6 +35,12 @@ using namespace ArdourCanvas;
 using std::max;
 using std::min;
 
+ArdourCanvas::Color
+change_alpha (Color c, double a)
+{
+       return ((c & ~0xff) | (lrintf (a*255.0) & 0xff));
+}
+
 void
 ArdourCanvas::color_to_hsv (Color color, double& h, double& s, double& v)
 {