[Spice-commits] server/red-parse-qxl.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Sat Jan 13 21:02:41 UTC 2018


 server/red-parse-qxl.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit aac24601647c9077199c1e9e17e794f5a354c4ba
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Sat Jan 13 00:12:12 2018 +0000

    red-parse-qxl: Copy correctly brush position
    
    This issue caused the glitches using the rectangular selection
    tool in PaintShop 6.
    
    The line was removed accidentally by "red_parse_qxl: fix throwing
    away drawables that have masks" (812b65984d286414170c6243bd3323b73a405ec3)
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Pavel Grunt <pavelgrunt at gmail.com>

diff --git a/server/red-parse-qxl.c b/server/red-parse-qxl.c
index b4325b04..69748698 100644
--- a/server/red-parse-qxl.c
+++ b/server/red-parse-qxl.c
@@ -616,6 +616,7 @@ static void red_get_brush_ptr(RedMemSlotInfo *slots, int group_id,
         break;
     case SPICE_BRUSH_TYPE_PATTERN:
         red->u.pattern.pat = red_get_image(slots, group_id, qxl->u.pattern.pat, flags, false);
+        red_get_point_ptr(&red->u.pattern.pos, &qxl->u.pattern.pos);
         break;
     }
 }


More information about the Spice-commits mailing list