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/combobox.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugingui/combobox.cc') diff --git a/plugingui/combobox.cc b/plugingui/combobox.cc index 4a6d2b5..6e6a9c8 100644 --- a/plugingui/combobox.cc +++ b/plugingui/combobox.cc @@ -115,7 +115,7 @@ static void drawArrow(Painter &p, int x, int y, int w, int h) void ComboBox::repaintEvent(RepaintEvent *e) { - Painter p(this); + Painter p(*this); p.clear(); @@ -128,7 +128,7 @@ void ComboBox::repaintEvent(RepaintEvent *e) return; } - p.drawBox(0, 0, &box, w, h); + p.drawBox(0, 0, box, w, h); p.setColour(Colour(183.0/255.0, 219.0/255.0 , 255.0/255.0, 1)); p.drawText(BORDER - 4 + 3, height()/2+5 + 1 + 1, font, _text); -- cgit v1.2.3