diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-07-10 18:24:18 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-07-11 13:36:42 -0700 |
commit | dd3121a4d724ab91c0562657eb7e8f811dd796c5 (patch) | |
tree | 68e00b5069b737184864ac633c8ac74f79d1a9a9 /recordmydesktop/src/rmd_rectinsert.h | |
parent | c611da821a5d28063ffe79c26d27ae89e1784ba0 (diff) |
rectinsert: stop aligning rects on insert here
Assume rects that come in for insertion are already as aligned as
possible within the rrect bounds. If the rrect has odd dimensions,
then there's potential for edge case odd rects too - but the only
even-sensitive code is the YUV updating and that's been amended to
at least ignore those edge cases gracefully.
Also constify the supplied xrect while in here.
Diffstat (limited to 'recordmydesktop/src/rmd_rectinsert.h')
-rw-r--r-- | recordmydesktop/src/rmd_rectinsert.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recordmydesktop/src/rmd_rectinsert.h b/recordmydesktop/src/rmd_rectinsert.h index 1f8b2c8..d9d0a9c 100644 --- a/recordmydesktop/src/rmd_rectinsert.h +++ b/recordmydesktop/src/rmd_rectinsert.h @@ -43,7 +43,7 @@ * \note This function is reentrant and recursive. The number * of insertions takes this into account. */ -int rmdRectInsert(RectArea **root, XRectangle *xrect); +int rmdRectInsert(RectArea **root, const XRectangle *xrect); /** * Clean up a list of areas marked for update. |