diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-02 04:57:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-02 04:57:16 +0300 |
commit | 5f43cf85c7e59f0e1192f803560848777d64743f (patch) | |
tree | 283ddb56228ab7b19a62be6f6be0344e77745757 /src/game.cpp | |
parent | ca58a3cced99fc2a8989da0155c1927bc0f08b6f (diff) | |
download | mv-5f43cf85c7e59f0e1192f803560848777d64743f.tar.gz mv-5f43cf85c7e59f0e1192f803560848777d64743f.tar.bz2 mv-5f43cf85c7e59f0e1192f803560848777d64743f.tar.xz mv-5f43cf85c7e59f0e1192f803560848777d64743f.zip |
Replace some getters to direct members access in graphics class.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index bb477b2e0..2d204499d 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -344,8 +344,8 @@ Game::Game(): // Create the viewport viewport = new Viewport; - viewport->setDimension(gcn::Rectangle(0, 0, graphics->getWidth(), - graphics->getHeight())); + viewport->setDimension(gcn::Rectangle(0, 0, graphics->mWidth, + graphics->mHeight)); gcn::Container *top = static_cast<gcn::Container*>(gui->getTop()); top->add(viewport); |