Minor improvement to CopyArea in Xgl
This commit is contained in:
		
							parent
							
								
									51155ca68b
								
							
						
					
					
						commit
						5d9885c5b9
					
				| 
						 | 
					@ -196,9 +196,8 @@ xglCopyArea (DrawablePtr pSrc,
 | 
				
			||||||
	     int	 dstX,
 | 
						     int	 dstX,
 | 
				
			||||||
	     int	 dstY)
 | 
						     int	 dstY)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    unsigned long flags;
 | 
					    RegionPtr pRegion;
 | 
				
			||||||
    RegionPtr	  pRegion;
 | 
					    BoxRec    box;
 | 
				
			||||||
    BoxRec	  box;
 | 
					 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    XGL_GC_PRIV (pGC);
 | 
					    XGL_GC_PRIV (pGC);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -207,12 +206,7 @@ xglCopyArea (DrawablePtr pSrc,
 | 
				
			||||||
    box.x2 = box.x1 + w;
 | 
					    box.x2 = box.x1 + w;
 | 
				
			||||||
    box.y2 = box.y1 + h;
 | 
					    box.y2 = box.y1 + h;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    flags = pGCPriv->flags;
 | 
					    if (pGCPriv->flags &= ~xglGCReadOnlyDrawableFlag)
 | 
				
			||||||
 | 
					 | 
				
			||||||
    if (XGL_GET_DRAWABLE_PIXMAP_PRIV (pSrc)->target == xglPixmapTargetIn)
 | 
					 | 
				
			||||||
	flags &= ~xglGCReadOnlyDrawableFlag;
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    if (flags)
 | 
					 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
	if (!xglSyncBits (pSrc, &box))
 | 
						if (!xglSyncBits (pSrc, &box))
 | 
				
			||||||
	    FatalError (XGL_SW_FAILURE_STRING);
 | 
						    FatalError (XGL_SW_FAILURE_STRING);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue