aboutsummaryrefslogtreecommitdiff
path: root/engines/adl
diff options
context:
space:
mode:
authorWalter van Niftrik2019-08-12 02:47:54 +0200
committerWalter van Niftrik2019-08-12 02:47:54 +0200
commit2d7635736f3023c23f7e7537f6549b34479014b7 (patch)
tree184c8685c36f7fe1e56339df10e8874f6762b111 /engines/adl
parent32824ea83f05ee28be5816c30ff14ba57b84ade1 (diff)
downloadscummvm-rg350-2d7635736f3023c23f7e7537f6549b34479014b7.tar.gz
scummvm-rg350-2d7635736f3023c23f7e7537f6549b34479014b7.tar.bz2
scummvm-rg350-2d7635736f3023c23f7e7537f6549b34479014b7.zip
ADL: Fix compilation for openpandora
Diffstat (limited to 'engines/adl')
-rw-r--r--engines/adl/display_a2.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/adl/display_a2.cpp b/engines/adl/display_a2.cpp
index 0471b66146..773bfb21f8 100644
--- a/engines/adl/display_a2.cpp
+++ b/engines/adl/display_a2.cpp
@@ -277,9 +277,9 @@ public:
const double g64 = y + (-0.272 * i) + (-0.647 * q);
const double b64 = y + (-1.105 * i) + (1.702 * q);
- uint8 r = CLIP(r64, 0.0, 1.0) * 255;
- uint8 g = CLIP(g64, 0.0, 1.0) * 255;
- uint8 b = CLIP(b64, 0.0, 1.0) * 255;
+ uint8 r = CLIP<double>(r64, 0.0, 1.0) * 255;
+ uint8 g = CLIP<double>(g64, 0.0, 1.0) * 255;
+ uint8 b = CLIP<double>(b64, 0.0, 1.0) * 255;
#ifdef NTSC_REMOVE_WHITE_RINGING
if ((s & 0xf) == 15) {
@@ -334,7 +334,7 @@ public:
}
}
- const uint8 brightness = CLIP(y, 0.0, 1.0) * 255;
+ const uint8 brightness = CLIP<double>(y, 0.0, 1.0) * 255;
_colors[s] = this->_format.RGBToColor(brightness, brightness, brightness);
}
}