From 01b32ebab05428d3cd57ca72d2db1f0c431e007f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 20 Nov 2015 20:03:45 +0100 Subject: Move reference ambersand. --- plugingui/painter.cc | 2 +- plugingui/painter.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugingui/painter.cc b/plugingui/painter.cc index 38f960d..a1c3f93 100644 --- a/plugingui/painter.cc +++ b/plugingui/painter.cc @@ -183,7 +183,7 @@ void Painter::clear() } } -void Painter::drawText(int x0, int y0, const Font &font, +void Painter::drawText(int x0, int y0, const Font& font, const std::string& text, bool nocolour) { PixelBufferAlpha* textbuf = font.render(text); diff --git a/plugingui/painter.h b/plugingui/painter.h index 009ebde..78f1560 100644 --- a/plugingui/painter.h +++ b/plugingui/painter.h @@ -46,7 +46,7 @@ public: void setColour(const Colour& colour); void drawLine(int x1, int y1, int x2, int y2); - void drawText(int x, int y, const Font &font, const std::string& text, + void drawText(int x, int y, const Font& font, const std::string& text, bool nocolour = false); void drawRectangle(int x1, int y1, int x2, int y2); void drawFilledRectangle(int x1, int y1, int x2, int y2); -- cgit v1.2.3