mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-22 20:35:43 +00:00
devPrivates rework: since API is already broken, switch everything
over to new system. Need to update documentation and address some remaining vestiges of old system such as CursorRec structure, fb "offman" structure, and FontRec privates.
This commit is contained in:
parent
8554707326
commit
4017d31902
261 changed files with 1642 additions and 3957 deletions
|
|
@ -38,7 +38,7 @@ fbCloseScreen (int index, ScreenPtr pScreen)
|
|||
xfree (pScreen->visuals);
|
||||
xfree (pScreen->devPrivate);
|
||||
#ifdef FB_SCREEN_PRIVATE
|
||||
xfree (pScreen->devPrivates[fbScreenPrivateIndex].ptr);
|
||||
xfree (dixLookupPrivate(&pScreen->devPrivates, fbGetScreenPrivateKey()));
|
||||
#endif
|
||||
return TRUE;
|
||||
}
|
||||
|
|
@ -93,7 +93,7 @@ _fbSetWindowPixmap (WindowPtr pWindow, PixmapPtr pPixmap)
|
|||
#ifdef FB_NO_WINDOW_PIXMAPS
|
||||
FatalError ("Attempted to set window pixmap without fb support\n");
|
||||
#else
|
||||
pWindow->devPrivates[fbWinPrivateIndex].ptr = (pointer) pPixmap;
|
||||
dixSetPrivate(&pWindow->devPrivates, fbGetWinPrivateKey(), pPixmap);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -107,7 +107,7 @@ fbSetupScreen(ScreenPtr pScreen,
|
|||
int width, /* pixel width of frame buffer */
|
||||
int bpp) /* bits per pixel for screen */
|
||||
{
|
||||
if (!fbAllocatePrivates(pScreen, (int *) 0))
|
||||
if (!fbAllocatePrivates(pScreen, NULL))
|
||||
return FALSE;
|
||||
pScreen->defColormap = FakeClientID(0);
|
||||
/* let CreateDefColormap do whatever it wants for pixels */
|
||||
|
|
|
|||
Loading…
Reference in a new issue