[Spice-devel] [PATCH spice-common] gdi: fix path segments drawing

Marc-André Lureau marcandre.lureau at gmail.com
Sun Nov 2 16:30:22 PST 2014


Patch by: fengzhichun <877821264 at qq.com>

https://bugs.freedesktop.org/show_bug.cgi?id=64698
---
 common/gdi_canvas.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/gdi_canvas.c b/common/gdi_canvas.c
index deb7649..3042031 100644
--- a/common/gdi_canvas.c
+++ b/common/gdi_canvas.c
@@ -319,7 +319,7 @@ static void set_path(GdiCanvas *canvas, SpicePath *s)
     unsigned int i;
 
     for (i = 0; i < s->num_segments; i++) {
-        SpicePathSeg* seg = s->segments[0];
+        SpicePathSeg* seg = s->segments[i];
         SpicePointFix* point = seg->points;
         SpicePointFix* end_point = point + seg->count;
 
-- 
1.9.3



More information about the Spice-devel mailing list