summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-09 19:43:40 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-09 19:43:40 +0300
commit4484b433abc8f07bcf7d4d22fd946e00b66b078d (patch)
treed8d04c6ea9526b90334e7b0a4abf44e2508a3597 /src/game.cpp
parentc1fb0bf9dc98e2a30f33cbbf4f74604b36efbcba (diff)
downloadplus-4484b433abc8f07bcf7d4d22fd946e00b66b078d.tar.gz
plus-4484b433abc8f07bcf7d4d22fd946e00b66b078d.tar.bz2
plus-4484b433abc8f07bcf7d4d22fd946e00b66b078d.tar.xz
plus-4484b433abc8f07bcf7d4d22fd946e00b66b078d.zip
Fix first part of shadow variables/methods errors.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game.cpp b/src/game.cpp
index aaa9694bf..a0635f42f 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -371,8 +371,8 @@ Game::Game():
// Create the viewport
viewport = new Viewport;
- viewport->setDimension(gcn::Rectangle(0, 0, graphics->mWidth,
- graphics->mHeight));
+ viewport->setDimension(gcn::Rectangle(0, 0, mainGraphics->mWidth,
+ mainGraphics->mHeight));
gcn::Container *top = static_cast<gcn::Container*>(gui->getTop());
top->add(viewport);
@@ -459,14 +459,14 @@ static bool saveScreenshot()
if (!config.getBoolValue("showip"))
{
- graphics->setSecure(true);
+ mainGraphics->setSecure(true);
gui->draw();
- screenshot = graphics->getScreenshot();
- graphics->setSecure(false);
+ screenshot = mainGraphics->getScreenshot();
+ mainGraphics->setSecure(false);
}
else
{
- screenshot = graphics->getScreenshot();
+ screenshot = mainGraphics->getScreenshot();
}
if (!screenshot)