From e086ecec676ea686d0f739084ace4d194d70ef24 Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Fri, 19 Aug 2005 22:36:08 +0000 Subject: constness svn-id: r18706 --- scumm/nut_renderer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scumm') diff --git a/scumm/nut_renderer.cpp b/scumm/nut_renderer.cpp index 5c285345cd..ea34da2083 100644 --- a/scumm/nut_renderer.cpp +++ b/scumm/nut_renderer.cpp @@ -75,7 +75,7 @@ bool NutRenderer::loadFont(const char *filename) { ScummFile file; _vm->openFile(file, filename); - if (file.isOpen() == false) { + if (!file.isOpen()) { error("NutRenderer::loadFont() Can't open font file: %s", filename); return false; } @@ -184,9 +184,9 @@ void NutRenderer::drawShadowChar(const Graphics::Surface &s, int c, int x, int y // the question remains whether they did it this way, too, or if there is // some "font shadow" resource we don't know yet. - int offsetX[7] = { -1, 0, 1, 0, 1, 2, 0 }; - int offsetY[7] = { 0, -1, 0, 1, 2, 1, 0 }; - int cTable[7] = { 0, 0, 0, 0, 0, 0, color }; + static const int offsetX[7] = { -1, 0, 1, 0, 1, 2, 0 }; + static const int offsetY[7] = { 0, -1, 0, 1, 2, 1, 0 }; + const int cTable[7] = { 0, 0, 0, 0, 0, 0, color }; int i = 0; if (!showShadow) @@ -278,7 +278,7 @@ void NutRenderer::draw2byte(const Graphics::Surface &s, int c, int x, int y, byt byte *dst = (byte *)s.pixels + y * s.pitch + x; const int width = _vm->_2byteWidth; const int height = MIN(_vm->_2byteHeight, s.h - y); - byte *src = _vm->get2byteCharPtr(c); + const byte *src = _vm->get2byteCharPtr(c); byte bits = 0; if (height <= 0 || width <= 0) { -- cgit v1.2.3