From f26bbefb2de1ad4051026248c2b6a894793a6a6e Mon Sep 17 00:00:00 2001 From: uruk Date: Wed, 5 Feb 2014 10:26:15 +0100 Subject: AVALANCHE: Make constants really const. --- engines/avalanche/graphics.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/avalanche') 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()); -- cgit v1.2.3