From fd0d78c3e97fdd1c054e079c00ee01eb3bd0a7d7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 5 May 2003 02:31:57 +0000 Subject: [PATCH] cleanup --- stepmania/src/RageBitmapTexture.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/stepmania/src/RageBitmapTexture.cpp b/stepmania/src/RageBitmapTexture.cpp index 2b41794887..a12063fc6c 100644 --- a/stepmania/src/RageBitmapTexture.cpp +++ b/stepmania/src/RageBitmapTexture.cpp @@ -261,9 +261,8 @@ SDL_Surface *RageBitmapTexture::CreateImg(int &pixfmt) m_iImageHeight = m_iTextureHeight; } - /* If the source is larger than the texture, we have to scale it down; that's - * "stretching", I guess. */ - if(m_iSourceWidth != m_iImageWidth || m_iSourceHeight > m_iImageHeight) + /* If the source is larger than the texture, we have to scale it to fit. */ + if(m_iSourceWidth > m_iImageWidth || m_iSourceHeight > m_iImageHeight) m_ActualID.bStretch = true; pixfmt = PixFmtMaskNo(fmtTexture); @@ -296,9 +295,7 @@ void RageBitmapTexture::Create() /* This will be set to the pixfmt we should use if we use an RGBA texture. */ int desired_rgba_pixfmt; - SDL_Surface *img = CreateImg(desired_rgba_pixfmt); - if(!m_uGLTextureID) glGenTextures(1, reinterpret_cast(&m_uGLTextureID)); ASSERT(m_uGLTextureID);