summaryrefslogtreecommitdiff
path: root/plugingui/listbox.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/listbox.cc
parent60109b8a737059058d2b0664c7ea88ec501490f7 (diff)
Refactored Painter.
Diffstat (limited to 'plugingui/listbox.cc')
-rw-r--r--plugingui/listbox.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/listbox.cc b/plugingui/listbox.cc
index 22263b0..a573e0e 100644
--- a/plugingui/listbox.cc
+++ b/plugingui/listbox.cc
@@ -101,7 +101,7 @@ void ListBox::clearSelectedValue()
void ListBox::repaintEvent(RepaintEvent *e)
{
- Painter p(this);
+ Painter p(*this);
p.clear();
@@ -112,7 +112,7 @@ void ListBox::repaintEvent(RepaintEvent *e)
return;
}
- p.drawBox(0, 0, &box, w, h);
+ p.drawBox(0, 0, box, w, h);
}
void ListBox::resize(int width, int height)