Be sure to add the x,y offset

The original transformation is no longer needed
Make it work again

Also remove the warnings
Some more ideas
More sub buffer management

Also simplify the sw buffer code