From 763283e8cf70af90ddd5c8a2f3b9c80011a626f6 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 12 Aug 2004 05:54:29 +0000 Subject: [PATCH] remove magnify alignment hack (for now) --- stepmania/src/SDL_rotozoom.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/stepmania/src/SDL_rotozoom.cpp b/stepmania/src/SDL_rotozoom.cpp index 949eb22bcf..2514967cd3 100644 --- a/stepmania/src/SDL_rotozoom.cpp +++ b/stepmania/src/SDL_rotozoom.cpp @@ -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) );