From 2c7d0b3518d72a7ab0726b72f7d2137e5944f049 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 25 Aug 2005 18:06:19 +0000 Subject: Made our drawImage() method respect the clip area from the guichan graphics part. Removed some (now) obsolete code. Fixed compilation errors. --- src/gui/checkbox.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/gui/checkbox.cpp') diff --git a/src/gui/checkbox.cpp b/src/gui/checkbox.cpp index ce7762d9..7506d3c0 100644 --- a/src/gui/checkbox.cpp +++ b/src/gui/checkbox.cpp @@ -68,9 +68,6 @@ CheckBox::~CheckBox() void CheckBox::drawBox(gcn::Graphics* graphics) { Image *box = NULL; - int x, y; - - getAbsolutePosition(x, y); if (mMarked) { if (isEnabled()) { @@ -84,9 +81,7 @@ void CheckBox::drawBox(gcn::Graphics* graphics) box = checkBoxDisabled; } - x += 2; - y += 2; if (box != NULL) { - dynamic_cast(graphics)->drawImage(box, x, y); + dynamic_cast(graphics)->drawImage(box, 2, 2); } } -- cgit v1.2.3-70-g09d2