diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2012-02-29 07:45:33 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2012-02-29 07:45:33 +0000 |
| commit | 195b9e70dd686d20db28c45c0958280e85ecede3 (patch) | |
| tree | 223aca97567af7e6b8439440705b35f2878505b8 /src/display/drawing-item.cpp | |
| parent | Header tidying, suppress all gdk deprecation errors in gtkmm (diff) | |
| download | inkscape-195b9e70dd686d20db28c45c0958280e85ecede3.tar.gz inkscape-195b9e70dd686d20db28c45c0958280e85ecede3.zip | |
Cleanup of unused variables and warnings.
(bzr r11031)
Diffstat (limited to 'src/display/drawing-item.cpp')
| -rw-r--r-- | src/display/drawing-item.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/display/drawing-item.cpp b/src/display/drawing-item.cpp index df44a3de0..0fb1f0018 100644 --- a/src/display/drawing-item.cpp +++ b/src/display/drawing-item.cpp @@ -431,7 +431,8 @@ DrawingItem::update(Geom::IntRect const &area, UpdateContext const &ctx, unsigne struct MaskLuminanceToAlpha { guint32 operator()(guint32 in) { - EXTRACT_ARGB32(in, a, r, g, b) + guint r = 0, g = 0, b = 0; + Display::ExtractRGB32(in, r, g, b); // the operation of unpremul -> luminance-to-alpha -> multiply by alpha // is equivalent to luminance-to-alpha on premultiplied color values // original computation in double: r*0.2125 + g*0.7154 + b*0.0721 |
