Skip to content

Commit e823b1e

Browse files
committed
fixed bug with image size
1 parent f19c692 commit e823b1e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

SimpleRemoteDesktop.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ QT += core gui widgets network websockets
99
TARGET = SimpleRemoteDesktop
1010
TEMPLATE = app
1111

12-
QMAKE_LFLAGS_RELEASE += -static -static-libgcc
12+
#QMAKE_LFLAGS_RELEASE += -static -static-libgcc
1313

1414
CONFIG += c++11
1515

src/res/dataManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class DataManager
168168
var imageHeight = this.uint16FromArray(data.subarray(2,4));
169169
var rectWidth = this.uint16FromArray(data.subarray(4,6));
170170

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

196-
if(this.loginClass)
196+
if(this.loginClass && !this.isSessionStarted)
197197
this.loginClass.addDesktopButton(uuid, nameString);
198198
}
199199
else if(command === KEY_SET_NAME)

0 commit comments

Comments
 (0)