summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-22 14:59:26 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-22 14:59:26 +0300
commit63f0b730767b1185dc33f8892068d697e26a09bb (patch)
tree9f3bcba891cb747b2b4696651b8df464a8a1fc86 /src/gui/viewport.cpp
parent48646db55005a0da079bd2c945875dc8225e2f86 (diff)
downloadmanaverse-63f0b730767b1185dc33f8892068d697e26a09bb.tar.gz
manaverse-63f0b730767b1185dc33f8892068d697e26a09bb.tar.bz2
manaverse-63f0b730767b1185dc33f8892068d697e26a09bb.tar.xz
manaverse-63f0b730767b1185dc33f8892068d697e26a09bb.zip
Move Rectangle and ClipRectangle into gui directory.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 54619c3e6..d9175a07f 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -123,7 +123,7 @@ void Viewport::draw(Graphics *graphics)
{
graphics->setColor(Color(64, 64, 64));
graphics->fillRectangle(
- gcn::Rectangle(0, 0, getWidth(), getHeight()));
+ Rectangle(0, 0, getWidth(), getHeight()));
BLOCK_END("Viewport::draw 1")
return;
}
@@ -353,7 +353,7 @@ void Viewport::_drawPath(Graphics *const graphics, const Path &path,
const int squareX = i->x * mapTileSize - mPixelViewX + 12;
const int squareY = i->y * mapTileSize - mPixelViewY + 12;
- graphics->fillRectangle(gcn::Rectangle(squareX, squareY, 8, 8));
+ graphics->fillRectangle(Rectangle(squareX, squareY, 8, 8));
if (mMap)
{
const std::string str = toString(cnt);
@@ -371,8 +371,8 @@ void Viewport::_drawPath(Graphics *const graphics, const Path &path,
const int squareX = i->x - mPixelViewX;
const int squareY = i->y - mPixelViewY;
- graphics->fillRectangle(gcn::Rectangle(squareX - 4, squareY - 4,
- 8, 8));
+ graphics->fillRectangle(Rectangle(
+ squareX - 4, squareY - 4, 8, 8));
if (mMap)
{
const std::string str = toString(mMap->getMetaTile(