fix scaling up in zoomSurface: calculate source pixels and weights differently

fix scaling > 2:1 in the same way as < 1:2
do lrintf(x), not int(x+0.5f)
This commit is contained in:
Glenn Maynard
2004-08-13 00:31:34 +00:00
parent cdcb0f1c8f
commit 577fd7040f
2 changed files with 100 additions and 81 deletions
-2
View File
@@ -157,8 +157,6 @@ void RageBitmapTexture::Create()
if( img->w != m_iImageWidth || img->h != m_iImageHeight )
{
/* resize currently only does RGBA8888 */
RageSurfaceUtils::ConvertSurface(img, img->w, img->h, 32, 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000);
zoomSurface(img, m_iImageWidth, m_iImageHeight );
}