From 335e9da41dfe5f019c83478f8ffe95b0a8807dd4 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 20 Dec 2007 19:00:10 +0000 Subject: Removed clamp() and used the common CLIP template instead svn-id: r29927 --- engines/saga/gfx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/saga/gfx.cpp') 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(from, 0, 256); + to = CLIP(to, 0, 256); if (from == 0 || to == 0) { // This case works like palToBlack or blackToPal, so no changes are needed -- cgit v1.2.3