summaryrefslogtreecommitdiff
path: root/src/gui/widgets/scrollarea.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-04 21:57:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-04 21:57:32 +0300
commit8a5603e487f682f5f67bc2cedae81249aa138f5b (patch)
tree697535ca4d8e50ee6da8cf364cad814fa5f7603a /src/gui/widgets/scrollarea.cpp
parent80f7177ea4ce0185e1ef3355e91dcf14617d0f09 (diff)
parentf2d1d2b43a0ebdb625aea94cb4b8ff7fce6bf8f4 (diff)
downloadplus-8a5603e487f682f5f67bc2cedae81249aa138f5b.tar.gz
plus-8a5603e487f682f5f67bc2cedae81249aa138f5b.tar.bz2
plus-8a5603e487f682f5f67bc2cedae81249aa138f5b.tar.xz
plus-8a5603e487f682f5f67bc2cedae81249aa138f5b.zip
Merge branch 'master' into stable
Diffstat (limited to 'src/gui/widgets/scrollarea.cpp')
-rw-r--r--src/gui/widgets/scrollarea.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp
index ebb91f518..6d7695198 100644
--- a/src/gui/widgets/scrollarea.cpp
+++ b/src/gui/widgets/scrollarea.cpp
@@ -2,7 +2,7 @@
* The ManaPlus Client
* Copyright (C) 2004-2009 The Mana World Development Team
* Copyright (C) 2009-2010 The Mana Developers
- * Copyright (C) 2011-2013 The ManaPlus Developers
+ * Copyright (C) 2011-2014 The ManaPlus Developers
*
* This file is part of The ManaPlus Client.
*
@@ -429,7 +429,7 @@ void ScrollArea::drawButton(gcn::Graphics *const graphics,
if (buttons[dir][state])
{
- DRAW_IMAGE(static_cast<Graphics*>(graphics),
+ static_cast<Graphics*>(graphics)->drawImage2(
buttons[dir][state], dim.x, dim.y);
}
}
@@ -479,17 +479,17 @@ void ScrollArea::drawVBar(gcn::Graphics *const graphics)
if (vBackground.grid[4])
{
- g->drawImagePattern(vBackground.grid[4],
+ g->drawPattern(vBackground.grid[4],
dim.x, dim.y, dim.width, dim.height);
}
if (vBackground.grid[1])
{
- g->drawImagePattern(vBackground.grid[1],
+ g->drawPattern(vBackground.grid[1],
dim.x, dim.y, dim.width, vBackground.grid[1]->getHeight());
}
if (vBackground.grid[7])
{
- g->drawImagePattern(vBackground.grid[7],
+ g->drawPattern(vBackground.grid[7],
dim.x, dim.height - vBackground.grid[7]->getHeight() + dim.y,
dim.width, vBackground.grid[7]->getHeight());
}
@@ -502,17 +502,17 @@ void ScrollArea::calcVBar(gcn::Graphics *const graphics)
if (vBackground.grid[4])
{
- g->calcImagePattern(mVertexes, vBackground.grid[4],
+ g->calcPattern(mVertexes, vBackground.grid[4],
dim.x, dim.y, dim.width, dim.height);
}
if (vBackground.grid[1])
{
- g->calcImagePattern(mVertexes, vBackground.grid[1],
+ g->calcPattern(mVertexes, vBackground.grid[1],
dim.x, dim.y, dim.width, vBackground.grid[1]->getHeight());
}
if (vBackground.grid[7])
{
- g->calcImagePattern(mVertexes, vBackground.grid[7],
+ g->calcPattern(mVertexes, vBackground.grid[7],
dim.x, dim.height - vBackground.grid[7]->getHeight() + dim.y,
dim.width, vBackground.grid[7]->getHeight());
}
@@ -525,19 +525,19 @@ void ScrollArea::drawHBar(gcn::Graphics *const graphics)
if (hBackground.grid[4])
{
- g->drawImagePattern(hBackground.grid[4],
+ g->drawPattern(hBackground.grid[4],
dim.x, dim.y, dim.width, dim.height);
}
if (hBackground.grid[3])
{
- g->drawImagePattern(hBackground.grid[3],
+ g->drawPattern(hBackground.grid[3],
dim.x, dim.y, hBackground.grid[3]->getWidth(), dim.height);
}
if (hBackground.grid[5])
{
- g->drawImagePattern(hBackground.grid[5],
+ g->drawPattern(hBackground.grid[5],
dim.x + dim.width - hBackground.grid[5]->getWidth(), dim.y,
hBackground.grid[5]->getWidth(), dim.height);
}
@@ -550,19 +550,19 @@ void ScrollArea::calcHBar(gcn::Graphics *const graphics)
if (hBackground.grid[4])
{
- g->calcImagePattern(mVertexes, hBackground.grid[4],
+ g->calcPattern(mVertexes, hBackground.grid[4],
dim.x, dim.y, dim.width, dim.height);
}
if (hBackground.grid[3])
{
- g->calcImagePattern(mVertexes, hBackground.grid[3],
+ g->calcPattern(mVertexes, hBackground.grid[3],
dim.x, dim.y, hBackground.grid[3]->getWidth(), dim.height);
}
if (hBackground.grid[5])
{
- g->calcImagePattern(mVertexes, hBackground.grid[5],
+ g->calcPattern(mVertexes, hBackground.grid[5],
dim.x + dim.width - hBackground.grid[5]->getWidth(), dim.y,
hBackground.grid[5]->getWidth(), dim.height);
}