From a65ca7af57feaf7a4ea73f7e071a72eb9b3a1e24 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 7 Nov 2015 10:39:46 +0100 Subject: Refactored Painter. --- plugingui/scrollbar.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugingui/scrollbar.cc') diff --git a/plugingui/scrollbar.cc b/plugingui/scrollbar.cc index 3107987..c175720 100644 --- a/plugingui/scrollbar.cc +++ b/plugingui/scrollbar.cc @@ -107,11 +107,11 @@ static void drawArrow(GUI::Painter &p, int x, int y, int w, int h) void GUI::ScrollBar::repaintEvent(RepaintEvent *e) { - GUI::Painter p(this); + GUI::Painter p(*this); p.clear(); - p.drawImageStretched(0, 0, &bg_img, width(), height()); + p.drawImageStretched(0, 0, bg_img, width(), height()); p.setColour(GUI::Colour(183.0/255.0, 219.0/255.0 , 255.0/255.0, 1)); if(!max) return; -- cgit v1.2.3