simplified transformation to window coordinates