summaryrefslogtreecommitdiff
path: root/src/gui/scrollarea.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-31 02:55:26 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-31 02:55:26 +0000
commitb0d28814ecdd29d3f33ab926b3ff3c325675e3b2 (patch)
tree57878c3e9900db640a34df7c319dbd930c18ab24 /src/gui/scrollarea.cpp
parent3b1cb45812fe4308073057c27837bc0c69a5d35e (diff)
downloadmana-b0d28814ecdd29d3f33ab926b3ff3c325675e3b2.tar.gz
mana-b0d28814ecdd29d3f33ab926b3ff3c325675e3b2.tar.bz2
mana-b0d28814ecdd29d3f33ab926b3ff3c325675e3b2.tar.xz
mana-b0d28814ecdd29d3f33ab926b3ff3c325675e3b2.zip
Various small cleanups.
Diffstat (limited to 'src/gui/scrollarea.cpp')
-rw-r--r--src/gui/scrollarea.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/scrollarea.cpp b/src/gui/scrollarea.cpp
index d1873cb5..7f39b5a8 100644
--- a/src/gui/scrollarea.cpp
+++ b/src/gui/scrollarea.cpp
@@ -199,7 +199,6 @@ void ScrollArea::draw(gcn::Graphics *graphics)
if (mContent)
{
- gcn::Rectangle contdim = mContent->getDimension();
graphics->pushClipArea(getContentDimension());
if (mContent->getBorderSize() > 0)
@@ -214,7 +213,7 @@ void ScrollArea::draw(gcn::Graphics *graphics)
graphics->popClipArea();
}
- graphics->pushClipArea(contdim);
+ graphics->pushClipArea(mContent->getDimension());
mContent->draw(graphics);
graphics->popClipArea();
graphics->popClipArea();