From 6d3565bd4c52125bda5d8bc0b30690d78615c2f5 Mon Sep 17 00:00:00 2001 From: bjcollins Date: Thu, 15 Oct 2015 14:29:48 -0500 Subject: [PATCH] Fix xf_rail_paint fencepost error The regions used to store and calculate the invalidRegion are exclusive of the bottom and right edges, not inclusive. Fixes "mouse droppings" in mspaint.exe when moving the mouse leftwards across the canvas. --- client/X11/xf_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/X11/xf_client.c b/client/X11/xf_client.c index a788ab2..2df32f4 100644 --- a/client/X11/xf_client.c +++ b/client/X11/xf_client.c @@ -342,7 +342,7 @@ BOOL xf_sw_end_paint(rdpContext* context) xf_lock_x11(xfc, FALSE); - xf_rail_paint(xfc, x, y, x + w - 1, y + h - 1); + xf_rail_paint(xfc, x, y, x + w, y + h); xf_unlock_x11(xfc, FALSE); } @@ -455,7 +455,7 @@ BOOL xf_hw_end_paint(rdpContext* context) xf_lock_x11(xfc, FALSE); - xf_rail_paint(xfc, x, y, x + w - 1, y + h - 1); + xf_rail_paint(xfc, x, y, x + w, y + h); xf_unlock_x11(xfc, FALSE); } -- 2.7.4