mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Fixed error in call to redrawCursor() and layer
This commit is contained in:
@@ -302,7 +302,7 @@ function GuacamoleClient(display, tunnel) {
|
|||||||
cursorImage = image;
|
cursorImage = image;
|
||||||
cursorHotspotX = x;
|
cursorHotspotX = x;
|
||||||
cursorHotspotY = y;
|
cursorHotspotY = y;
|
||||||
redrawCursor();
|
redrawCursor(cursorRectX, cursorRectY);
|
||||||
};
|
};
|
||||||
image.src = "data:image/png;base64," + data
|
image.src = "data:image/png;base64," + data
|
||||||
|
|
||||||
|
@@ -112,7 +112,7 @@ function Layer(width, height) {
|
|||||||
|
|
||||||
// Draw all pending updates.
|
// Draw all pending updates.
|
||||||
var update;
|
var update;
|
||||||
while ((update = updates[0]).hasHandler()) {
|
while ((update = updates[0]) != null && update.hasHandler()) {
|
||||||
update.handle();
|
update.handle();
|
||||||
updates.shift();
|
updates.shift();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user