summaryrefslogtreecommitdiff
path: root/plugingui/checkbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/checkbox.cc')
-rw-r--r--plugingui/checkbox.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/checkbox.cc b/plugingui/checkbox.cc
index e25624c..abb01ce 100644
--- a/plugingui/checkbox.cc
+++ b/plugingui/checkbox.cc
@@ -87,11 +87,11 @@ void GUI::CheckBox::repaintEvent(GUI::RepaintEvent *e)
if(state) {
p.drawImage(0, (knob.height() - bg_on.height()) / 2, &bg_on);
- if(middle) p.drawImage((bg_on.width() - knob.width()) / 2, 0, &knob);
- else p.drawImage(bg_on.width() - 40, 0, &knob);
+ if(middle) p.drawImage((bg_on.width() - knob.width()) / 2 + 1, 0, &knob);
+ else p.drawImage(bg_on.width() - 40 + 2, 0, &knob);
} else {
p.drawImage(0, (knob.height() - bg_off.height()) / 2, &bg_off);
- if(middle) p.drawImage((bg_on.width() - knob.width()) / 2, 0, &knob);
+ if(middle) p.drawImage((bg_on.width() - knob.width()) / 2 + 1, 0, &knob);
else p.drawImage(0, 0, &knob);
}
/*