summaryrefslogtreecommitdiff
path: root/hw/kdrive/src/kaapict.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-05-17 07:14:23 +0000
committerEric Anholt <anholt@freebsd.org>2004-05-17 07:14:23 +0000
commit85f46e0bcdf60d145a6868ee71d10688c9113e6e (patch)
treee69179adb110a8a8aedbad97714ed09040ba07da /hw/kdrive/src/kaapict.c
parent47fb207c8ae2b54e976066f78892a1ee3fb35d30 (diff)
Add new CheckComposite hook. This allows a driver to avoid the migration of
pixmaps for a Composite operation if the operation can't be supported. This hook is optional.
Diffstat (limited to 'hw/kdrive/src/kaapict.c')
-rw-r--r--hw/kdrive/src/kaapict.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/kdrive/src/kaapict.c b/hw/kdrive/src/kaapict.c
index cca0d466e..5c4696dec 100644
--- a/hw/kdrive/src/kaapict.c
+++ b/hw/kdrive/src/kaapict.c
@@ -426,6 +426,11 @@ kaaTryDriverComposite(CARD8 op,
width, height))
return 1;
+ if (pKaaScr->info->CheckComposite &&
+ !(*pKaaScr->info->CheckComposite) (op, pSrc, pMask, pDst))
+ {
+ return -1;
+ }
if (pSrc->pDrawable->type == DRAWABLE_PIXMAP)
kaaPixmapUseScreen ((PixmapPtr) pSrc->pDrawable);