Get rid of unused vars and warnings

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2833 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2007-08-08 07:13:26 +00:00
parent 0e9ae6340b
commit 867800b299
@@ -315,7 +315,6 @@ TFB_DrawCanvas_FilledImage (TFB_Image *img, int x, int y, int scale, int r, int
} }
else else
{ // fill the non-transparent parts of the image with fillcolor { // fill the non-transparent parts of the image with fillcolor
SDL_Surface *src = img->NormalImg;
SDL_Surface *newfill = img->FilledImg; SDL_Surface *newfill = img->FilledImg;
if (newfill && (newfill->w < surf->w || newfill->h < surf->h)) if (newfill && (newfill->w < surf->w || newfill->h < surf->h))
@@ -1179,8 +1178,6 @@ TFB_DrawCanvas_Rescale_Trilinear (TFB_Canvas src_canvas, TFB_Canvas src_mipmap,
{ {
const int px0 = (sx0 >> 16); const int px0 = (sx0 >> 16);
const int px1 = (sx1 >> 16); const int px1 = (sx1 >> 16);
Uint8 *src_p0 = src_a0 + px0 * sbpp;
Uint8 *src_p1 = src_a1 + px1 * mmbpp;
// retrieve the fractional portions of x // retrieve the fractional portions of x
const Uint8 u0 = (sx0 >> 8) & 0xff; const Uint8 u0 = (sx0 >> 8) & 0xff;
const Uint8 u1 = (sx1 >> 8) & 0xff; const Uint8 u1 = (sx1 >> 8) & 0xff;