Fixed the function that returns the display size to return the size of the frame buffer, not the size of the window.