[Spice-commits] src/cursor.js

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jan 13 16:27:29 UTC 2020


 src/cursor.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e1da56fe93666cd4c0be652ec78fb6542b5c9f49
Author: Jeremy White <jwhite at codeweavers.com>
Date:   Mon Jan 13 10:14:43 2020 -0600

    Bug fix:  non square cursors were drawn improperly.

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);


More information about the Spice-commits mailing list