From e1da56fe93666cd4c0be652ec78fb6542b5c9f49 Mon Sep 17 00:00:00 2001 From: Jeremy White <jwhite@codeweavers.com> Date: Mon, 13 Jan 2020 10:14:43 -0600 Subject: [PATCH] Bug fix: non square cursors were drawn improperly. --- src/cursor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cursor.js b/src/cursor.js index a3be8da..c3bc05e 100644 --- a/src/cursor.js +++ b/src/cursor.js @@ -126,7 +126,7 @@ SpiceCursorConn.prototype.process_channel_message = function(msg) SpiceCursorConn.prototype.set_cursor = function(cursor) { - var pngstr = create_rgba_png(cursor.header.height, cursor.header.width, cursor.data); + var pngstr = create_rgba_png(cursor.header.width, cursor.header.height, cursor.data); var curstr = 'url(data:image/png,' + pngstr + ') ' + cursor.header.hot_spot_x + ' ' + cursor.header.hot_spot_y + ", default"; var screen = document.getElementById(this.parent.screen_id); -- GitLab