Looking at it, you want to double in through mode right?  Would that be in there (above that) and in TransformPipeline (uscale /= gstate_c.curTextureWidth etc.)?

-[Unknown]