From af8b074f169c006d37817c265e1b620af929c603 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 30 Oct 2002 23:43:35 +0000 Subject: [PATCH] cleanup --- stepmania/src/RageBitmapTexture.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/stepmania/src/RageBitmapTexture.cpp b/stepmania/src/RageBitmapTexture.cpp index ab621a2085..c777c24c01 100644 --- a/stepmania/src/RageBitmapTexture.cpp +++ b/stepmania/src/RageBitmapTexture.cpp @@ -261,17 +261,16 @@ void RageBitmapTexture::Create( } while (m_iImageWidth != m_iTextureWidth || m_iImageHeight != m_iTextureHeight) { - SDL_Surface *dst; - float xscale = float(m_iTextureWidth)/m_iImageWidth; float yscale = float(m_iTextureHeight)/m_iImageHeight; - /* Our simple filter is a simple linear filter, so it can't - * scale to less than .5 very well. If we need to go lower - * than .5, do it iteratively. */ + + /* Our filter is a simple linear filter, so it can't scale to + * less than .5 very well. If we need to go lower than .5, do + * it iteratively. */ xscale = max(xscale, .5f); yscale = max(yscale, .5f); - dst = zoomSurface(img, xscale, yscale); + SDL_Surface *dst = zoomSurface(img, xscale, yscale); SDL_FreeSurface(img); img = dst;