From e7fae9ecc42ab5e73b89117722dbf4117d928f9a Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Sat, 22 May 2010 00:26:28 -0700 Subject: Move each screen's root-window pointer into ScreenRec. Many references to the WindowTable array already had the corresponding screen pointer handy, which meant they usually looked like "WindowTable[pScreen->myNum]". Adding a field to ScreenRec instead of keeping this information in a parallel array simplifies those expressions, and eliminates a MAXSCREENS-sized array. Since dix uses this data, a screen private entry isn't appropriate. xf86-video-dummy currently uses WindowTable, so it needs to be updated to reflect this change. Signed-off-by: Jamey Sharp Reviewed-by: Tiago Vignatti Tested-by: Tiago Vignatti (i686 GNU/Linux) --- fb/fb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fb') diff --git a/fb/fb.h b/fb/fb.h index 91c91eeb2..e2222a5c7 100644 --- a/fb/fb.h +++ b/fb/fb.h @@ -740,7 +740,7 @@ typedef struct { #define fbWindowEnabled(pWin) \ REGION_NOTEMPTY((pWin)->drawable.pScreen, \ - &WindowTable[(pWin)->drawable.pScreen->myNum]->borderClip) + &(pWin)->drawable.pScreen->root->borderClip) #define fbDrawableEnabled(pDrawable) \ ((pDrawable)->type == DRAWABLE_PIXMAP ? \ -- cgit v1.2.3