XFB Scaling

Not my branch, but I want comments on this since it fixes bunch of issues
Fixes Cubivore image scaled incorrectly(Issue 7618)
JMC has more things it fixes.
Hmm... it seems to be implemented in other places of the sw renderer, why not here? I'm not sure if that's a TODO or a bug, actually.