Update clipping before changing scaling

The scaling is relative the current viewport, so we need to make
sure it is correct before changing the scale setting.
This commit is contained in:
Samuel Mannehed 2017-02-16 15:38:58 +01:00
parent 5f38376adb
commit 6bfd9dc96f
1 changed files with 3 additions and 0 deletions

View File

@ -1220,6 +1220,9 @@ var UI;
var resizeMode = UI.getSetting('resize');
display.set_scale(1);
// Make sure the viewport is adjusted first
UI.updateViewClip();
if (resizeMode === 'remote') {
// Request changing the resolution of the remote display to