diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-20 21:19:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-20 21:19:35 +0300 |
commit | 3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9 (patch) | |
tree | 2053748aba4fd1e01020effe9322757426354d28 /src/gui/viewport.cpp | |
parent | 2577a25f8a4acf587526809fda2ded95875e1222 (diff) | |
download | manaverse-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.tar.gz manaverse-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.tar.bz2 manaverse-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.tar.xz manaverse-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.zip |
Add missing const in gui directory.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index e7162f399..1a8231780 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -115,7 +115,7 @@ void Viewport::setMap(Map *const map) mMap = map; } -void Viewport::draw(Graphics *graphics) +void Viewport::draw(Graphics *const graphics) { BLOCK_START("Viewport::draw 1") static int lastTick = tick_time; @@ -268,7 +268,7 @@ void Viewport::draw(Graphics *graphics) BLOCK_END("Viewport::draw 1") } -void Viewport::safeDraw(Graphics *graphics) +void Viewport::safeDraw(Graphics *const graphics) { Viewport::draw(graphics); } @@ -584,8 +584,8 @@ void Viewport::getMouseTile(int &destX, int &destY) getMouseTile(mMouseX, mMouseY, destX, destY); } -void Viewport::getMouseTile(const int x, int y, - int &destX, int &destY) +void Viewport::getMouseTile(const int x, const int y, + int &destX, int &destY) const { const int tw = mMap->getTileWidth(); const int th = mMap->getTileHeight(); |