summaryrefslogtreecommitdiff
path: root/src/flooritem.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/flooritem.cpp
parent48646db55005a0da079bd2c945875dc8225e2f86 (diff)
downloadplus-63f0b730767b1185dc33f8892068d697e26a09bb.tar.gz
plus-63f0b730767b1185dc33f8892068d697e26a09bb.tar.bz2
plus-63f0b730767b1185dc33f8892068d697e26a09bb.tar.xz
plus-63f0b730767b1185dc33f8892068d697e26a09bb.zip
Move Rectangle and ClipRectangle into gui directory.
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r--src/flooritem.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/flooritem.cpp b/src/flooritem.cpp
index 6780b10fa..fd6a6afd3 100644
--- a/src/flooritem.cpp
+++ b/src/flooritem.cpp
@@ -123,7 +123,7 @@ void FloorItem::draw(Graphics *const graphics,
if (curTime > mDropTime + 28 && curTime < mDropTime + 50)
{
graphics->setColor(Color(80, 200, 20, 200));
- graphics->fillRectangle(gcn::Rectangle(
+ graphics->fillRectangle(Rectangle(
x, y, dx, dy));
}
else if (curTime > mDropTime + 19
@@ -131,15 +131,14 @@ void FloorItem::draw(Graphics *const graphics,
{
graphics->setColor(Color(200, 80, 20,
80 + 10 * (curTime - mDropTime - 18)));
- graphics->fillRectangle(gcn::Rectangle(
+ graphics->fillRectangle(Rectangle(
x, y, dx, dy));
}
else if (curTime > mDropTime && curTime < mDropTime + 20)
{
graphics->setColor(Color(20, 20, 255,
7 * (curTime - mDropTime)));
- graphics->fillRectangle(gcn::Rectangle(
- x, y, dx, dy));
+ graphics->fillRectangle(Rectangle(x, y, dx, dy));
}
}
}