summaryrefslogtreecommitdiff
path: root/plugingui/checkbox.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-04-19 23:00:09 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-04-19 23:00:09 +0200
commitc5527bb9155086da8b5a7cea7d9450f265fb6f6a (patch)
tree87a63078c76d5658a86896e4d78d436d99fb18ae /plugingui/checkbox.cc
parentbc4f25337e048db7d7ec86cfb116cc3768473ff5 (diff)
GUI position/size tweaks and some pixmap changes.
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);
}
/*