prevent resolution from decreasing when zooming out (bugfix)