Skip to content

Commit

Permalink
fixed bug with image size
Browse files Browse the repository at this point in the history
  • Loading branch information
agafon0ff committed Jul 22, 2020
1 parent f19c692 commit e823b1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SimpleRemoteDesktop.pro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ QT += core gui widgets network websockets
TARGET = SimpleRemoteDesktop
TEMPLATE = app

QMAKE_LFLAGS_RELEASE += -static -static-libgcc
#QMAKE_LFLAGS_RELEASE += -static -static-libgcc

CONFIG += c++11

Expand Down
4 changes: 2 additions & 2 deletions src/res/dataManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class DataManager
var imageHeight = this.uint16FromArray(data.subarray(2,4));
var rectWidth = this.uint16FromArray(data.subarray(4,6));

if(this.displayField && !this.isSessionStarted)
if(this.displayField)
this.displayField.setImageParameters(imageWidth,imageHeight,rectWidth);
}
else if(command === KEY_IMAGE_TILE)
Expand All @@ -193,7 +193,7 @@ class DataManager
var name = data.subarray(16,data.length);
var nameString = String.fromCharCode.apply(null, name);

if(this.loginClass)
if(this.loginClass && !this.isSessionStarted)
this.loginClass.addDesktopButton(uuid, nameString);
}
else if(command === KEY_SET_NAME)
Expand Down

0 comments on commit e823b1e

Please sign in to comment.