From 38e43aa1f78e8962da1a18868c708e5a24a2b7dc Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 24 Jul 2007 18:37:12 +0000 Subject: [PATCH] If width and height are different than img->w and img->h, it specifies the active region in the surface--the region that needs to be copied, if the surface is converted. However, the surface should remain the same size. --- stepmania/src/RageDisplay_OGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index 1da8975f65..a8545872e6 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -1972,7 +1972,7 @@ PixelFormat RageDisplay_OGL::GetImgPixelFormat( RageSurface* &img, bool &bFreeIm const PixelFormatDesc *pfd = DISPLAY->GetPixelFormatDesc(pixfmt); - RageSurface *imgconv = CreateSurface( width, height, + RageSurface *imgconv = CreateSurface( img->w, img->h, pfd->bpp, pfd->masks[0], pfd->masks[1], pfd->masks[2], pfd->masks[3] ); RageSurfaceUtils::Blit( img, imgconv, width, height ); img = imgconv;