diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-11-20 20:03:45 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-11-20 20:03:45 +0100 |
commit | 01b32ebab05428d3cd57ca72d2db1f0c431e007f (patch) | |
tree | bf429f236909d96d0ad23b028e7697ef54e9e072 /plugingui | |
parent | 3734f5d3c741e877c49ff1c99ce67cb4a764023b (diff) |
Move reference ambersand.
Diffstat (limited to 'plugingui')
-rw-r--r-- | plugingui/painter.cc | 2 | ||||
-rw-r--r-- | 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); |