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:
parent
5f38376adb
commit
6bfd9dc96f
|
@ -1220,6 +1220,9 @@ var UI;
|
||||||
var resizeMode = UI.getSetting('resize');
|
var resizeMode = UI.getSetting('resize');
|
||||||
display.set_scale(1);
|
display.set_scale(1);
|
||||||
|
|
||||||
|
// Make sure the viewport is adjusted first
|
||||||
|
UI.updateViewClip();
|
||||||
|
|
||||||
if (resizeMode === 'remote') {
|
if (resizeMode === 'remote') {
|
||||||
|
|
||||||
// Request changing the resolution of the remote display to
|
// Request changing the resolution of the remote display to
|
||||||
|
|
Loading…
Reference in New Issue