converting back framebuffer size to map size