summaryrefslogtreecommitdiff
path: root/src/gui/scrollarea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/scrollarea.cpp')
-rw-r--r--src/gui/scrollarea.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/scrollarea.cpp b/src/gui/scrollarea.cpp
index 834a7f3a..92bb94b8 100644
--- a/src/gui/scrollarea.cpp
+++ b/src/gui/scrollarea.cpp
@@ -215,9 +215,9 @@ void ScrollArea::drawFrame(gcn::Graphics *graphics)
{
if (mOpaque)
{
- int bs = getFrameSize();
- int w = getWidth() + bs * 2;
- int h = getHeight() + bs * 2;
+ const int bs = getFrameSize();
+ const int w = getWidth() + bs * 2;
+ const int h = getHeight() + bs * 2;
static_cast<Graphics*>(graphics)->
drawImageRect(0, 0, w, h, background);