mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +00:00
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 <jamey@minilop.net> Reviewed-by: Tiago Vignatti <tiago.vignatti@nokia.com> Tested-by: Tiago Vignatti <tiago.vignatti@nokia.com> (i686 GNU/Linux)
This commit is contained in:
parent
80b5d3a326
commit
e7fae9ecc4
52 changed files with 130 additions and 128 deletions
|
|
@ -607,7 +607,7 @@ DRI2CanFlip(DrawablePtr pDraw)
|
|||
if (pDraw->type == DRAWABLE_PIXMAP)
|
||||
return TRUE;
|
||||
|
||||
pRoot = WindowTable[pScreen->myNum];
|
||||
pRoot = pScreen->root;
|
||||
pRootPixmap = pScreen->GetWindowPixmap(pRoot);
|
||||
|
||||
pWin = (WindowPtr) pDraw;
|
||||
|
|
|
|||
Loading…
Reference in a new issue