mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed previous login dialog.
This commit is contained in:
parent
fdfa9450c1
commit
bb8e6d6511
3 changed files with 9 additions and 11 deletions
|
@ -564,12 +564,11 @@ function CreateDesktopMultiplexor(parent, domain, nodeid, func) {
|
|||
|
||||
switch (command) {
|
||||
case 3: // Tile, check dimentions and store
|
||||
if (data.length < 10) break;
|
||||
if ((data.length < 10) || (obj.lastData == null)) break;
|
||||
var x = data.readUInt16BE(4), y = data.readUInt16BE(6);
|
||||
var dimensions = require('image-size')(data.slice(8));
|
||||
var sx = (x / 16), sy = (y / 16), sw = (dimensions.width / 16), sh = (dimensions.height / 16);
|
||||
obj.counter++;
|
||||
//console.log("Tile", x, y, dimensions.width, dimensions.height);
|
||||
|
||||
// Keep a reference to this image & how many tiles it covers
|
||||
obj.images[obj.counter] = { next: null, prev: obj.lastData, data: jumboData };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue