Separated window and framebuffer sizes.
Added support for High-DPI on OS X.