From 5f43cf85c7e59f0e1192f803560848777d64743f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Jul 2011 04:57:16 +0300 Subject: Replace some getters to direct members access in graphics class. --- src/game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game.cpp') 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(gui->getTop()); top->add(viewport); -- cgit v1.2.3-70-g09d2