aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/gfx.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2007-12-20 19:00:10 +0000
committerFilippos Karapetis2007-12-20 19:00:10 +0000
commit335e9da41dfe5f019c83478f8ffe95b0a8807dd4 (patch)
treefa820c30901978a5543560d87bc16517be470a1a /engines/saga/gfx.cpp
parent0e744e491b785a8983fc5f4ab35d7ec644caa45e (diff)
downloadscummvm-rg350-335e9da41dfe5f019c83478f8ffe95b0a8807dd4.tar.gz
scummvm-rg350-335e9da41dfe5f019c83478f8ffe95b0a8807dd4.tar.bz2
scummvm-rg350-335e9da41dfe5f019c83478f8ffe95b0a8807dd4.zip
Removed clamp() and used the common CLIP template instead
svn-id: r29927
Diffstat (limited to 'engines/saga/gfx.cpp')
-rw-r--r--engines/saga/gfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/saga/gfx.cpp b/engines/saga/gfx.cpp
index b8af79cca3..5cac60d415 100644
--- a/engines/saga/gfx.cpp
+++ b/engines/saga/gfx.cpp
@@ -407,8 +407,8 @@ void Gfx::palFade(PalEntry *srcPal, int16 from, int16 to, int16 start, int16 num
PalEntry *palE;
double fpercent;
- from = CLIP((int)from, 0, 256);
- to = CLIP((int)to, 0, 256);
+ from = CLIP<int16>(from, 0, 256);
+ to = CLIP<int16>(to, 0, 256);
if (from == 0 || to == 0) {
// This case works like palToBlack or blackToPal, so no changes are needed