When display is small (8x8) it is zoomed in too far. When the display is larger (32x32) it is zoomed out too far. The edge of the display should always be close to the edge of the window.
@mwcz Removed -14 form the z distance calculation and replaced with *0.6. Basically it seems like the offset needed to be proportional to the calculated distance. I'm open to other suggestions.
When display is small (8x8) it is zoomed in too far. When the display is larger (32x32) it is zoomed out too far. The edge of the display should always be close to the edge of the window.