diff options
author | Filippos Karapetis | 2007-12-20 19:00:10 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-12-20 19:00:10 +0000 |
commit | 335e9da41dfe5f019c83478f8ffe95b0a8807dd4 (patch) | |
tree | fa820c30901978a5543560d87bc16517be470a1a /engines/saga/gfx.cpp | |
parent | 0e744e491b785a8983fc5f4ab35d7ec644caa45e (diff) | |
download | scummvm-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.cpp | 4 |
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 |