summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSultan Alsawaf <sultan@kerneltoast.com>2022-12-03 18:35:23 -0800
committerSultan Alsawaf <sultan@kerneltoast.com>2022-12-19 23:56:27 -0800
commit08183c66e8b08b82152f77c40e38ce48ecfd9902 (patch)
tree1b97268b2a6596832cdd1388cb2b99f92ce8f46b /include
parentbb1711b7fba42f2a0c7d1c09beee241a1b2bcc30 (diff)
downloadxserver-08183c66e8b08b82152f77c40e38ce48ecfd9902.tar.gz
pixmap: make PixmapDirtyCopyArea public
PixmapDirtyCopyArea() is about to be used outside of pixmap.c, so fix up its interface by specifying the dirty area directly rather than passing a `PixmapDirtyUpdatePtr`. This makes it easier to use outside of pixmap.c, as the caller doesn't need to create a bulky PixmapDirtyUpdateRec to use this function. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
Diffstat (limited to 'include')
-rw-r--r--include/pixmap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/pixmap.h b/include/pixmap.h
index 7144bfb30..e251690d5 100644
--- a/include/pixmap.h
+++ b/include/pixmap.h
@@ -134,4 +134,9 @@ PixmapStopDirtyTracking(DrawablePtr src, PixmapPtr slave_dst);
extern _X_EXPORT Bool
PixmapSyncDirtyHelper(PixmapDirtyUpdatePtr dirty);
+extern _X_EXPORT void
+PixmapDirtyCopyArea(PixmapPtr dst, DrawablePtr src,
+ int x, int y, int dst_x, int dst_y,
+ RegionPtr dirty_region);
+
#endif /* PIXMAP_H */