aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2014-02-05 10:26:15 +0100
committeruruk2014-02-05 10:51:32 +0100
commitf26bbefb2de1ad4051026248c2b6a894793a6a6e (patch)
tree6ccb2c387d7bb6989afc6c14868ca10d3950f590
parent2ca5143155d472f0140ed27d4ec15e4d08655a01 (diff)
downloadscummvm-rg350-f26bbefb2de1ad4051026248c2b6a894793a6a6e.tar.gz
scummvm-rg350-f26bbefb2de1ad4051026248c2b6a894793a6a6e.tar.bz2
scummvm-rg350-f26bbefb2de1ad4051026248c2b6a894793a6a6e.zip
AVALANCHE: Make constants really const.
-rw-r--r--engines/avalanche/graphics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp
index 2a4a29c1c9..8bc32d8b1f 100644
--- a/engines/avalanche/graphics.cpp
+++ b/engines/avalanche/graphics.cpp
@@ -503,8 +503,8 @@ void GraphicManager::nimFree() {
void GraphicManager::ghostDrawGhost(byte ghostArr[2][66][26], uint16 destX, uint16 destY) {
const byte kPlaneToUse[4] = { 0, 0, 0, 1 };
// Constants from the original code.
- uint16 height = 66;
- uint16 width = 26 * 8;
+ const uint16 height = 66;
+ const uint16 width = 26 * 8;
Graphics::Surface ghostPic;
ghostPic.create(width, height, Graphics::PixelFormat::createFormatCLUT8());
@@ -528,8 +528,8 @@ void GraphicManager::ghostDrawGhost(byte ghostArr[2][66][26], uint16 destX, uint
void GraphicManager::ghostDrawGlerk(byte glerkArr[4][35][9], uint16 destX, uint16 destY) {
// Constants from the original code.
- uint16 height = 35;
- uint16 width = 9 * 8;
+ const uint16 height = 35;
+ const uint16 width = 9 * 8;
Graphics::Surface glerkPic;
glerkPic.create(width, height, Graphics::PixelFormat::createFormatCLUT8());