DPI-scaling should affect resolution

The correct resolution will now be reported depending on whether the
application is DPI-aware.
Fixed centering for non DPI-aware applications