xserver/hw/kdrive/src kshadow.c,1.7,1.8

Keith Packard xserver-commit at pdx.freedesktop.org
Fri Jun 4 09:10:52 PDT 2004


Committed by: keithp

Update of /cvs/xserver/xserver/hw/kdrive/src
In directory pdx:/tmp/cvs-serv724/hw/kdrive/src

Modified Files:
	kshadow.c 
Log Message:
2004-06-04  Keith Packard  <keithp at keithp.com>

	* configure.ac:
	* hw/Makefile.am:
	Add top-level build support for GL X server (not working yet)

	* composite/compinit.c: (compAddAlternateVisuals):
	Fix a few allocation bugs with alternate visual ids
	Allow for non-8/8/8 alternate visuals
	
	* hw/kdrive/src/kshadow.c: (KdShadowSet):
	Turn off any existing shadow before enabling it again
	(avoids re-registering existing damage)

	* miext/damage/damage.c: (damageRemoveDamage),
	(damageInsertDamage), (DamageRegister), (DamageUnregister):
	Add some validation code to catch re-registered damages


Index: kshadow.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/kdrive/src/kshadow.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- a/kshadow.c	2 Nov 2003 19:56:10 -0000	1.7
+++ b/kshadow.c	4 Jun 2004 16:10:50 -0000	1.8
@@ -68,13 +68,12 @@
     KdScreenInfo *screen = pScreenPriv->screen;
     int	 fb;
 
+    shadowUnset (pScreen);
     for (fb = 0; fb < KD_MAX_FB && screen->fb[fb].depth; fb++)
     {
 	if (screen->fb[fb].shadow)
 	    return shadowSet (pScreen, (*pScreen->GetScreenPixmap) (pScreen), 
 			      update, window, randr, 0);
-	else
-	    shadowUnset (pScreen);
     }
     return TRUE;
 }




More information about the xserver-commit mailing list