Window up with test graphics.
Fixed distortion issues.
Fixed a bit of the math.
Merge with WindowConfig branch.