[xserver-commit] xserver/mi misprite.c,3.13.2.3,3.13.2.4 mispritest.h,1.6.2.1,1.6.2.2
Keith Packard
xserver-commit@pdx.freedesktop.org
Fri, 24 Oct 2003 02:34:35 -0700
- Previous message: [xserver-commit] xserver/hw/kdrive/vesa vesa.c,1.26.2.2,1.26.2.3 vesa.h,1.16.2.1,1.16.2.2 vesainit.c,1.10,1.10.2.1
- Next message: [xserver-commit] xserver/damageext damageext.c,1.1.2.1,1.1.2.2 damageextint.h,1.1.2.1,1.1.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: keithp
Update of /cvs/xserver/xserver/mi
In directory pdx:/tmp/cvs-serv4383/mi
Modified Files:
Tag: xfixes_2_branch
misprite.c mispritest.h
Log Message:
* hw/kdrive/fbdev/fbdev.c: (fbdevScreenInitialize),
(fbdevMapFramebuffer), (fbdevSetScreenSizes),
(fbdevUnmapFramebuffer), (fbdevSetShadow), (fbdevRandRSetConfig),
(fbdevInitScreen), (fbdevFinishInitScreen), (fbdevCreateResources):
* hw/kdrive/fbdev/fbdev.h:
* hw/kdrive/fbdev/fbinit.c:
* hw/kdrive/mach64/mach64.c: (mach64CreateResources):
* hw/kdrive/mga/Makefile.am:
* hw/kdrive/mga/mga.c: (mgaCreateResources):
* hw/kdrive/nvidia/Makefile.am:
* hw/kdrive/nvidia/nvidia.c:
* hw/kdrive/r128/Makefile.am:
* hw/kdrive/r128/r128.c:
* hw/kdrive/r128/r128draw.c: (r128PrepareSolid), (r128PrepareCopy):
* hw/kdrive/smi/Makefile.am:
* hw/kdrive/smi/smi.c:
* hw/kdrive/smi/smi.h:
* hw/kdrive/src/kdrive.c: (KdCreateScreenResources),
(KdScreenInit):
* hw/kdrive/src/kdrive.h:
* hw/kdrive/src/kshadow.c: (KdShadowFbAlloc), (KdShadowFbFree),
(KdShadowSet), (KdShadowUnset):
* hw/kdrive/vesa/vesa.c: (vesaSetScreenSizes), (vesaSetShadow),
(vesaMapFramebuffer), (vesaUnmapFramebuffer), (vesaRandRSetConfig),
(vesaInitScreen), (vesaFinishInitScreen), (vesaCreateResources),
(vesaScreenFini):
* hw/kdrive/vesa/vesa.h:
* hw/kdrive/vesa/vesainit.c:
Add function called at CreateScreenResources to get shadow set up
on pixmap correctly. Rework vesa and fbdev code to handle
shadows right with the non-layer world.
* mi/misprite.c:
* mi/mispritest.h:
Use GetScreenPixmap directly for damage detection of sprite.
Avoids problems during server shutdown with windows disappearing
before the sprite layer is closed.
Index: misprite.c
===================================================================
RCS file: /cvs/xserver/xserver/mi/misprite.c,v
retrieving revision 3.13.2.3
retrieving revision 3.13.2.4
diff -u -d -r3.13.2.3 -r3.13.2.4
--- misprite.c 24 Oct 2003 06:35:24 -0000 3.13.2.3
+++ misprite.c 24 Oct 2003 09:34:33 -0000 3.13.2.4
@@ -264,6 +264,7 @@
pScreen->StoreColors = pScreenPriv->StoreColors;
pScreen->SaveDoomedAreas = pScreenPriv->SaveDoomedAreas;
+ miSpriteIsUpFALSE (pScreen, pScreenPriv);
DamageDestroy (pScreenPriv->pDamage);
xfree ((pointer) pScreenPriv);
Index: mispritest.h
===================================================================
RCS file: /cvs/xserver/xserver/mi/mispritest.h,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -u -d -r1.6.2.1 -r1.6.2.2
--- mispritest.h 22 Oct 2003 06:00:50 -0000 1.6.2.1
+++ mispritest.h 24 Oct 2003 09:34:33 -0000 1.6.2.2
@@ -84,11 +84,11 @@
#define miSpriteIsUpTRUE(pScreen, pScreenPriv) if (!pScreenPriv->isUp) { \
pScreenPriv->isUp = TRUE; \
- DamageRegister (&WindowTable[pScreen->myNum]->drawable, pScreenPriv->pDamage); \
+ DamageRegister (&(*pScreen->GetScreenPixmap) (pScreen)->drawable, pScreenPriv->pDamage); \
}
#define miSpriteIsUpFALSE(pScreen, pScreenPriv) if (pScreenPriv->isUp) { \
- DamageUnregister (&WindowTable[pScreen->myNum]->drawable, pScreenPriv->pDamage); \
+ DamageUnregister (&(*pScreen->GetScreenPixmap) (pScreen)->drawable, pScreenPriv->pDamage); \
pScreenPriv->isUp = FALSE; \
}
- Previous message: [xserver-commit] xserver/hw/kdrive/vesa vesa.c,1.26.2.2,1.26.2.3 vesa.h,1.16.2.1,1.16.2.2 vesainit.c,1.10,1.10.2.1
- Next message: [xserver-commit] xserver/damageext damageext.c,1.1.2.1,1.1.2.2 damageextint.h,1.1.2.1,1.1.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]