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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user