From 1a6d7a87bd52a1cefbf33f6eb04d624865c4529d Mon Sep 17 00:00:00 2001 From: gewlitys Date: Sun, 16 Mar 2003 16:11:27 +0000 Subject: [PATCH] Some minor trilinear cleanups git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@889 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/graphics/sdl/canvas.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sc2/src/sc2code/libs/graphics/sdl/canvas.c b/sc2/src/sc2code/libs/graphics/sdl/canvas.c index 046121977..7689e3d2e 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/canvas.c +++ b/sc2/src/sc2code/libs/graphics/sdl/canvas.c @@ -487,14 +487,14 @@ TFB_DrawCanvas_Rescale_Trilinear (TFB_Canvas src_canvas, TFB_Canvas dest_canvas, { SDL_Color *srcpal = src->format->palette->colors; SDL_Color *mmpal = mipmap->format->palette->colors; - Uint32 fsx0 = (int)(65536.0f * (float)src->w / w); - Uint32 fsy0 = (int)(65536.0f * (float)src->h / h); - Uint32 fsx1 = (int)(65536.0f * (float)mipmap->w / w); - Uint32 fsy1 = (int)(65536.0f * (float)mipmap->h / h); - Uint32 ck0 = src->format->colorkey; - Uint32 ck1 = mipmap->format->colorkey; + int fsx0 = (int)(65536.0f * (float)src->w / w); + int fsy0 = (int)(65536.0f * (float)src->h / h); + int fsx1 = (int)(65536.0f * (float)mipmap->w / w); + int fsy1 = (int)(65536.0f * (float)mipmap->h / h); int sx0 = 0, sy0 = 0, sx1 = 0, sy1 = 0; int x, y; + Uint32 ck0 = src->format->colorkey; + Uint32 ck1 = mipmap->format->colorkey; SDL_LockSurface(src); SDL_LockSurface(dst);