quick update to window.cpp to fix macbook retina issue.