Fixed scaling issues with different resolutions.