[xserver-commit] xserver/render mipict.c,1.16,1.17

Keith Packard xserver-commit@pdx.freedesktop.org
Fri, 07 Nov 2003 15:29:32 -0800


Committed by: keithp

Update of /cvs/xserver/xserver/render
In directory pdx:/tmp/cvs-serv8754/render

Modified Files:
	mipict.c 
Log Message:
	* composite/compalloc.c: (compReportDamage), (compRedirectWindow),
	(compFreeClientWindow), (compFreeClientSubwindows),
	(compRedirectOneSubwindow), (compUnredirectOneSubwindow),
	(compAllocPixmap), (compFreePixmap), (compReallocPixmap):
	* composite/compext.c: (CompositeExtensionInit):
	* composite/compinit.c: (compScreenInit):
	* composite/compint.h:
	* composite/compwindow.c: (compCheckRedirect),
	(compReparentWindow), (compCopyWindow), (compDestroyWindow),
	(compSetRedirectBorderClip), (compGetRedirectBorderClip),
	(compWindowUpdateAutomatic), (compWindowUpdate):
	* fb/fb.h:
	* fb/fbpixmap.c: (fbCreatePixmapBpp):
	* fb/fbwindow.c: (fbCopyWindow):
	* hw/kdrive/fbdev/fbdev.c: (fbdevInitialize), (fbdevScreenInit):
	* hw/kdrive/linux/keyboard.c: (readKernelMapping):
	* hw/kdrive/linux/linux.c: (LinuxInit), (LinuxSpecialKey),
	(LinuxFini):
	* hw/kdrive/linux/mouse.c: (MouseWaitForReadable), (MouseReadByte),
	(ps2SkipInit), (MouseRead):
	* hw/kdrive/smi/smi.c: (smiScreenInit):
	* include/pixmapstr.h:
	* mi/mi.h:
	* mi/midispcur.c:
	* mi/mivaltree.c: (miRegisterRedirectBorderClipProc),
	(miComputeClips):
	* miext/damage/damage.c: (DamageDamageRegion):
	* miext/damage/damage.h:
	* render/mipict.c: (miValidatePicture):
	Ok, Composite extension is semi-working; when no-one asks
	for redirection, the server seems to act as before.  With
	RedirectSubwindows (root, automatic), the server looks just
	like a regular X server.  Now to go rewrite the (currently lame)
	compositing manager to get some real action on the screen.
	
	Some of the fixes here are to make valgrind quiet with
	various ioctls used by kdrive/linux.

	Also fixed a bug where fbdev initialization was out of order
	in fbdev.c and smi.c


Index: mipict.c
===================================================================
RCS file: /cvs/xserver/xserver/render/mipict.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- mipict.c	5 Nov 2003 05:45:31 -0000	1.16
+++ mipict.c	7 Nov 2003 23:29:30 -0000	1.17
@@ -209,26 +209,10 @@
 
 	    /* XXX should we translate by drawable.x/y here ? */
 	    /* If you want pixmaps in offscreen memory, yes */
-	    if (pDrawable->x >= 0)
-	    {
-		pixbounds.x1 = pDrawable->x;
-		pixbounds.x2 = pDrawable->x + pDrawable->width;
-	    }
-	    else
-	    {
-		pixbounds.x1 = 0;
-		pixbounds.x2 = pDrawable->width;
-	    }
-	    if (pDrawable->y >= 0)
-	    {
-		pixbounds.y1 = pDrawable->y;
-		pixbounds.y2 = pDrawable->y + pDrawable->height;
-	    }
-	    else
-	    {
-		pixbounds.y1 = 0;
-		pixbounds.y2 = pDrawable->height;
-	    }
+	    pixbounds.x1 = pDrawable->x;
+	    pixbounds.y1 = pDrawable->y;
+	    pixbounds.x2 = pDrawable->x + pDrawable->width;
+	    pixbounds.y2 = pDrawable->y + pDrawable->height;
 
 	    if (pPicture->freeCompClip)
 	    {