mirror of https://github.com/FreeRDP/FreeRDP
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.
This commit is contained in:
parent
6223e31162
commit
6d3565bd4c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue