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.
This commit is contained in:
Glenn Maynard
2007-07-24 18:37:12 +00:00
parent be23217576
commit 38e43aa1f7
+1 -1
View File
@@ -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;