summaryrefslogtreecommitdiff
path: root/plugingui/pixelbuffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/pixelbuffer.cc')
-rw-r--r--plugingui/pixelbuffer.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugingui/pixelbuffer.cc b/plugingui/pixelbuffer.cc
index f2fdf62..906e4d6 100644
--- a/plugingui/pixelbuffer.cc
+++ b/plugingui/pixelbuffer.cc
@@ -142,9 +142,10 @@ void PixelBufferAlpha::addPixel(size_t x, size_t y,
buf[PX(3)] = (a + b) * 255;
}
-void PixelBufferAlpha::addPixel(size_t x, size_t y, Colour c)
+void PixelBufferAlpha::addPixel(size_t x, size_t y, const Colour& c)
{
- addPixel(x, y, c.red * 255, c.green * 255, c.blue * 255, c.alpha * 255);
+ addPixel(x, y,
+ c.red() * 255, c.green() * 255, c.blue() * 255, c.alpha() * 255);
}
void PixelBufferAlpha::pixel(size_t x, size_t y,