diff options
author | Max Horn | 2004-04-04 18:07:26 +0000 |
---|---|---|
committer | Max Horn | 2004-04-04 18:07:26 +0000 |
commit | 5858a919a2b33c7249485f3c4c2d903680fa7ed9 (patch) | |
tree | c1e8870f7117b6b8fca0dbb2632b87ea5b4f1d73 /scumm/nut_renderer.cpp | |
parent | f1ee3c0163b65619a6dcad280ec24ad13c5731b8 (diff) | |
download | scummvm-rg350-5858a919a2b33c7249485f3c4c2d903680fa7ed9.tar.gz scummvm-rg350-5858a919a2b33c7249485f3c4c2d903680fa7ed9.tar.bz2 scummvm-rg350-5858a919a2b33c7249485f3c4c2d903680fa7ed9.zip |
allow disabling of text shadow in NUT font renderer
svn-id: r13459
Diffstat (limited to 'scumm/nut_renderer.cpp')
-rw-r--r-- | scumm/nut_renderer.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/scumm/nut_renderer.cpp b/scumm/nut_renderer.cpp index d85222b9e2..215fe830c8 100644 --- a/scumm/nut_renderer.cpp +++ b/scumm/nut_renderer.cpp @@ -240,8 +240,8 @@ int NutRenderer::getCharHeight(byte c) { return _chars[c].height; } -void NutRenderer::drawShadowChar(int c, int x, int y, byte color, bool useMask) { - debug(8, "NutRenderer::drawShadowChar('%c', %d, %d, %d, %d) called", c, x, y, (int)color, useMask); +void NutRenderer::drawShadowChar(int c, int x, int y, byte color, bool useMask, bool showShadow) { + debug(8, "NutRenderer::drawShadowChar('%c', %d, %d, %d, %d, %d) called", c, x, y, (int)color, useMask, showShadow); if (!_loaded) { warning("NutRenderer::drawShadowChar() Font is not loaded"); return; @@ -261,8 +261,12 @@ void NutRenderer::drawShadowChar(int c, int x, int y, byte color, bool useMask) 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 }; + int i = 0; + + if (!showShadow) + i = 6; - for (int i = 0; i < 7; i++) { + for (; i < 7; i++) { x += offsetX[i]; y += offsetY[i]; color = cTable[i]; |