1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed blank remote desktop on connect.

This commit is contained in:
Ylian Saint-Hilaire 2020-11-06 16:33:54 -08:00
parent 10b094b9eb
commit 2407f367f2
3 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -47,7 +47,7 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
obj.FirstDraw = false;
obj.ScreenWidth = 960;
obj.ScreenHeight = 700;
obj.ScreenHeight = 701;
obj.width = 960;
obj.height = 960;
@ -182,6 +182,7 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
obj.ProcessScreenMsg = function (width, height) {
if (obj.debugmode > 0) { console.log("ScreenSize: " + width + " x " + height); }
if ((obj.ScreenWidth == width) || (obj.ScreenHeight == height)) return; // Ignore change if screen is same size.
obj.Canvas.setTransform(1, 0, 0, 1, 0, 0);
obj.rotation = 0;
obj.FirstDraw = true;