2008-03-12 Jens Alfke Fixed the conversion of window to layer coordinates. The old way didn't work in HiDPI. Thanks to Quincey Morriss and Nathan Vander Wilt for figuring this out.