remove magnify alignment hack (for now)

This commit is contained in:
Chris Danford
2004-08-12 05:54:29 +00:00
parent 362cb13072
commit 763283e8cf
-12
View File
@@ -36,12 +36,6 @@ static void ZoomSurface( RageSurface * src, RageSurface * dst )
{
float sax = sx*x + sx/2;
// HACK to improve pixel alignment in the 2x magnify case.
// I can't figure out a general solution that works with larger and
// scale factors, so this remains a special case.
if( sx == 0.5f ) // 2x magnify
sax += 0.5f;
/* sx/2 is the distance from the start of the sample to the center;
* sx/4 is the distance from the center of the sample to the center of
* either pixel. */
@@ -73,12 +67,6 @@ static void ZoomSurface( RageSurface * src, RageSurface * dst )
{
float say = sy*y + sy/2;
// HACK to improve pixel alignment in the 2x magnify case.
// I can't figure out a general solution that works with larger and
// scale factors, so this remains a special case.
if( sy == 0.5f ) // 2x magnify
say += 0.5f;
float ystep = sy/4;
esy0.push_back( int(say-ystep) );