Fixed bug with getting mouse position when the window was scaled.