diff options
author | Robin Gareus <robin@gareus.org> | 2015-05-24 21:53:06 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-05-24 21:54:21 +0200 |
commit | 1be75b7bfebb5bdc8f3ec40cfbd0146327b0407e (patch) | |
tree | 8714b3fb472600525d2ebdf0075a0d8bfdd18bda /libs/gtkmm2ext/ardour_icon.cc | |
parent | 1d5c6104f50b97dd3c796852c93d9b09fef41360 (diff) |
NOOP, amend 3173246 comments and whitespace
Diffstat (limited to 'libs/gtkmm2ext/ardour_icon.cc')
-rw-r--r-- | libs/gtkmm2ext/ardour_icon.cc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/libs/gtkmm2ext/ardour_icon.cc b/libs/gtkmm2ext/ardour_icon.cc index 36b0b3c387..b728040c74 100644 --- a/libs/gtkmm2ext/ardour_icon.cc +++ b/libs/gtkmm2ext/ardour_icon.cc @@ -18,15 +18,14 @@ */ -#include <math.h> // For M_PI -#include <algorithm> +#include <math.h> // M_PI +#include <algorithm> // std:min #include "gtkmm2ext/ardour_icon.h" -// "canvas/types.h" Color == uint32_t -// from libs/canvas/utils.cc +// from libs/canvas/utils.cc and canvas/types.h: typedef uint32_t Color; static void ardour_canvas_set_source_rgba (cairo_t *cr, uint32_t color) { - cairo_set_source_rgba ( cr, + cairo_set_source_rgba (cr, ((color >> 24) & 0xff) / 255.0, ((color >> 16) & 0xff) / 255.0, ((color >> 8) & 0xff) / 255.0, @@ -58,9 +57,6 @@ Gtkmm2ext::ArdourIcon::render (cairo_t *cr, cairo_set_line_width(cr, 1.5); \ cairo_stroke(cr); - - /* TODO separate these into dedicated class - * it may also be efficient to render them only once for every size (image-surface) */ switch (icon) { case Gtkmm2ext::ArdourIcon::RecTapeMode: @@ -424,5 +420,3 @@ Gtkmm2ext::ArdourIcon::render (cairo_t *cr, #undef VECTORICONSTROKEOUTLINE return true; } - - |