summaryrefslogtreecommitdiff
path: root/src/compat-api.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat-api.h')
-rw-r--r--src/compat-api.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compat-api.h b/src/compat-api.h
index 336698d3..4bb6be45 100644
--- a/src/compat-api.h
+++ b/src/compat-api.h
@@ -262,8 +262,10 @@ static inline void FreePixmap(PixmapPtr pixmap)
#if ABI_VIDEODRV_VERSION >= SET_ABI_VERSION(25, 2)
#define PixmapDirtyDst(d) ((d)->secondary_dst)
+#define PixmapDirtyPrimary(d) (PixmapDirtyDst(d)->primary_pixmap)
#else
#define PixmapDirtyDst(d) ((d)->slave_dst)
+#define PixmapDirtyPrimary(d) (PixmapDirtyDst(d)->master_pixmap)
#endif
#endif