translate coords to current window size