summaryrefslogtreecommitdiff
path: root/fb/fbscreen.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-07-03 16:05:42 -0700
committerKeith Packard <keithp@keithp.com>2012-07-05 13:40:18 -0700
commit7ca32f1c282cb6d4d7255f118a1e2e6f54e6b3fa (patch)
tree8a820396185c6b2741039f4106758c8b14c84a1c /fb/fbscreen.c
parent9d457f9c55f12106ba44c1c9db59d14f978f0ae8 (diff)
Use new screen-specific privates for fb window and gc privates
This ensures that only screens using fb will have this space allocated. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'fb/fbscreen.c')
-rw-r--r--fb/fbscreen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fb/fbscreen.c b/fb/fbscreen.c
index 0833cd41e..7c7d6560e 100644
--- a/fb/fbscreen.c
+++ b/fb/fbscreen.c
@@ -85,7 +85,7 @@ _fbGetWindowPixmap(WindowPtr pWindow)
void
_fbSetWindowPixmap(WindowPtr pWindow, PixmapPtr pPixmap)
{
- dixSetPrivate(&pWindow->devPrivates, fbGetWinPrivateKey(), pPixmap);
+ dixSetPrivate(&pWindow->devPrivates, fbGetWinPrivateKey(pWindow), pPixmap);
}
Bool
@@ -95,7 +95,7 @@ fbSetupScreen(ScreenPtr pScreen, pointer pbits, /* pointer to screen bitmap */
int dpiy, int width, /* pixel width of frame buffer */
int bpp)
{ /* bits per pixel for screen */
- if (!fbAllocatePrivates(pScreen, NULL))
+ if (!fbAllocatePrivates(pScreen))
return FALSE;
pScreen->defColormap = FakeClientID(0);
/* let CreateDefColormap do whatever it wants for pixels */