Fixed error in call to redrawCursor() and layer

This commit is contained in:
Michael Jumper
2011-03-02 17:21:26 -08:00
parent 53755b8070
commit 22f6c24f9b
2 changed files with 2 additions and 2 deletions

View File

@@ -302,7 +302,7 @@ function GuacamoleClient(display, tunnel) {
cursorImage = image;
cursorHotspotX = x;
cursorHotspotY = y;
redrawCursor();
redrawCursor(cursorRectX, cursorRectY);
};
image.src = "data:image/png;base64," + data

View File

@@ -112,7 +112,7 @@ function Layer(width, height) {
// Draw all pending updates.
var update;
while ((update = updates[0]).hasHandler()) {
while ((update = updates[0]) != null && update.hasHandler()) {
update.handle();
updates.shift();
}