diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-04 00:32:52 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-04 00:32:52 -0400 |
commit | aaea166135ace01709f7e0be64f40be80f4107ec (patch) | |
tree | 0e794ef7a723e4aaf909b841a6816e405b4ceca1 /libs/canvas/utils.cc | |
parent | 1d8bac08c0c00d44e22c581768a275e1b21a99a7 (diff) |
initial commit of hand merging, plus getting "ancient" waf script to work correctly
Diffstat (limited to 'libs/canvas/utils.cc')
-rw-r--r-- | libs/canvas/utils.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/canvas/utils.cc b/libs/canvas/utils.cc new file mode 100644 index 0000000000..1bb629ed99 --- /dev/null +++ b/libs/canvas/utils.cc @@ -0,0 +1,15 @@ +#include <stdint.h> +#include <cairomm/context.h> +#include "canvas/utils.h" + +void +ArdourCanvas::set_source_rgba (Cairo::RefPtr<Cairo::Context> context, Color color) +{ + context->set_source_rgba ( + ((color >> 24) & 0xff) / 255.0, + ((color >> 16) & 0xff) / 255.0, + ((color >> 8) & 0xff) / 255.0, + ((color >> 0) & 0xff) / 255.0 + ); +} + |