aboutsummaryrefslogtreecommitdiff
path: root/common/scaler.cpp
diff options
context:
space:
mode:
authorMax Horn2004-06-27 22:04:19 +0000
committerMax Horn2004-06-27 22:04:19 +0000
commita461c7550e2260601a63cd113a31254f2fd3ef50 (patch)
treec8b1c86e2a67bb2a5967af106dde7c1abff2efb8 /common/scaler.cpp
parentb7f9e2137bcccf0928c8116333db5a8a6536e94a (diff)
downloadscummvm-rg350-a461c7550e2260601a63cd113a31254f2fd3ef50.tar.gz
scummvm-rg350-a461c7550e2260601a63cd113a31254f2fd3ef50.tar.bz2
scummvm-rg350-a461c7550e2260601a63cd113a31254f2fd3ef50.zip
irrelevant tweak, but I am a const-junkie :-)
svn-id: r14089
Diffstat (limited to 'common/scaler.cpp')
-rw-r--r--common/scaler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/scaler.cpp b/common/scaler.cpp
index cbbba0ac01..7557402bfa 100644
--- a/common/scaler.cpp
+++ b/common/scaler.cpp
@@ -143,8 +143,8 @@ void Normal2x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPit
void Normal3x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch,
int width, int height) {
uint8 *r;
- uint32 dstPitch2 = dstPitch * 2;
- uint32 dstPitch3 = dstPitch * 3;
+ const uint32 dstPitch2 = dstPitch * 2;
+ const uint32 dstPitch3 = dstPitch * 3;
while (height--) {
r = dstPtr;