fb: Make rootless-agnostic
Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
		
							parent
							
								
									1594fb9129
								
							
						
					
					
						commit
						315661a425
					
				
							
								
								
									
										5
									
								
								fb/fb.h
								
								
								
								
							
							
						
						
									
										5
									
								
								fb/fb.h
								
								
								
								
							|  | @ -472,13 +472,8 @@ typedef struct { | |||
| #define fbGetWindowPixmap(pWin)	((PixmapPtr)\ | ||||
| 				 dixLookupPrivate(&((WindowPtr)(pWin))->devPrivates, fbGetWinPrivateKey(pWin))) | ||||
| 
 | ||||
| #ifdef ROOTLESS | ||||
| #define __fbPixDrawableX(pPix)	((pPix)->drawable.x) | ||||
| #define __fbPixDrawableY(pPix)	((pPix)->drawable.y) | ||||
| #else | ||||
| #define __fbPixDrawableX(pPix)	0 | ||||
| #define __fbPixDrawableY(pPix)	0 | ||||
| #endif | ||||
| 
 | ||||
| #ifdef COMPOSITE | ||||
| #define __fbPixOffXWin(pPix)	(__fbPixDrawableX(pPix) - (pPix)->screen_x) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue