summaryrefslogtreecommitdiff
path: root/plugingui/combobox.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-11-07 10:39:46 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-11-07 10:39:46 +0100
commita65ca7af57feaf7a4ea73f7e071a72eb9b3a1e24 (patch)
tree6cf9fa3b8b57513b8eae030bdc6e1a18495d7e75 /plugingui/combobox.cc
parent60109b8a737059058d2b0664c7ea88ec501490f7 (diff)
Refactored Painter.
Diffstat (limited to 'plugingui/combobox.cc')
-rw-r--r--plugingui/combobox.cc4
1 files changed, 2 insertions, 2 deletions
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);