aboutsummaryrefslogtreecommitdiff
path: root/scumm/nut_renderer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/nut_renderer.cpp')
-rw-r--r--scumm/nut_renderer.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/scumm/nut_renderer.cpp b/scumm/nut_renderer.cpp
index 0cb1c1f41f..1d5ea3d99c 100644
--- a/scumm/nut_renderer.cpp
+++ b/scumm/nut_renderer.cpp
@@ -223,14 +223,8 @@ void NutRenderer::drawChar(char c, int32 x, int32 y, byte color) {
for (int32 tx = 0; tx < width; tx++) {
byte pixel = *(_tmpCodecBuffer + ty * width + tx);
if (pixel != 0) {
- if (color == 0) {
- if (pixel == 0x01)
- pixel = 0xf;
- }
- else {
- if (pixel == 0x01)
- pixel = color;
- }
+ if (pixel == 0x01)
+ pixel = (color == 0) ? 0xf : color;
if (pixel == 0xff)
pixel = 0x0;
*(_dstPtr + ((ty + y) * _dstPitch + x + tx)) = pixel;
@@ -238,4 +232,3 @@ void NutRenderer::drawChar(char c, int32 x, int32 y, byte color) {
}
}
}
-