mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-29 21:46:40 +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
|
|
@ -56,6 +56,7 @@ SOFTWARE.
|
|||
#include <X11/X.h>
|
||||
#include "scrnintstr.h"
|
||||
#include "windowstr.h"
|
||||
#include "privates.h"
|
||||
#include "afb.h"
|
||||
#include "mistruct.h"
|
||||
#include "regionstr.h"
|
||||
|
|
@ -67,14 +68,16 @@ afbCreateWindow(pWin)
|
|||
{
|
||||
register afbPrivWin *pPrivWin;
|
||||
|
||||
pPrivWin = (afbPrivWin *)(pWin->devPrivates[afbWindowPrivateIndex].ptr);
|
||||
pPrivWin = (afbPrivWin *)dixLookupPrivate(&pWin->devPrivates,
|
||||
afbWindowPrivateKey);
|
||||
pPrivWin->pRotatedBorder = NullPixmap;
|
||||
pPrivWin->pRotatedBackground = NullPixmap;
|
||||
pPrivWin->fastBackground = FALSE;
|
||||
pPrivWin->fastBorder = FALSE;
|
||||
#ifdef PIXMAP_PER_WINDOW
|
||||
pWin->devPrivates[frameWindowPrivateIndex].ptr =
|
||||
pWin->pDrawable.pScreen->devPrivates[afbScreenPrivateIndex].ptr;
|
||||
dixSetPrivate(&pWin->devPrivates, frameWindowPrivateKey,
|
||||
dixLookupPrivate(&pWin->pDrawable.pScreen->devPrivates,
|
||||
afbScreenPrivateKey));
|
||||
#endif
|
||||
|
||||
return (TRUE);
|
||||
|
|
@ -88,8 +91,8 @@ afbDestroyWindow(pWin)
|
|||
{
|
||||
register afbPrivWin *pPrivWin;
|
||||
|
||||
pPrivWin = (afbPrivWin *)(pWin->devPrivates[afbWindowPrivateIndex].ptr);
|
||||
|
||||
pPrivWin = (afbPrivWin *)dixLookupPrivate(&pWin->devPrivates,
|
||||
afbWindowPrivateKey);
|
||||
if (pPrivWin->pRotatedBorder)
|
||||
(*pWin->drawable.pScreen->DestroyPixmap)(pPrivWin->pRotatedBorder);
|
||||
if (pPrivWin->pRotatedBackground)
|
||||
|
|
@ -123,7 +126,8 @@ afbPositionWindow(pWin, x, y)
|
|||
register afbPrivWin *pPrivWin;
|
||||
int reset = 0;
|
||||
|
||||
pPrivWin = (afbPrivWin *)(pWin->devPrivates[afbWindowPrivateIndex].ptr);
|
||||
pPrivWin = (afbPrivWin *)dixLookupPrivate(&pWin->devPrivates,
|
||||
afbWindowPrivateKey);
|
||||
if (pWin->backgroundState == BackgroundPixmap && pPrivWin->fastBackground) {
|
||||
afbXRotatePixmap(pPrivWin->pRotatedBackground,
|
||||
pWin->drawable.x - pPrivWin->oldRotate.x);
|
||||
|
|
@ -230,7 +234,8 @@ afbChangeWindowAttributes(pWin, mask)
|
|||
register afbPrivWin *pPrivWin;
|
||||
WindowPtr pBgWin;
|
||||
|
||||
pPrivWin = (afbPrivWin *)(pWin->devPrivates[afbWindowPrivateIndex].ptr);
|
||||
pPrivWin = (afbPrivWin *)dixLookupPrivate(&pWin->devPrivates,
|
||||
afbWindowPrivateKey);
|
||||
/*
|
||||
* When background state changes from ParentRelative and
|
||||
* we had previously rotated the fast border pixmap to match
|
||||
|
|
|
|||
Loading…
Reference in a new issue