summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-06-05 11:21:08 +0100
committerDave Airlie <airlied@redhat.com>2012-06-05 11:21:08 +0100
commit91e8b295f87fba81369b19969900f0981e8ba9cd (patch)
tree0ac6b305f3e06bd1007ad5191991553c73483fcf /src
parent6e29cf8c2927f81e1e5890a46bf03182079cc062 (diff)
downloadxorg-driver-xf86-video-fbdev-91e8b295f87fba81369b19969900f0981e8ba9cd.tar.gz
fbdev: convert to new screen conversion APIs.
Generated using util/modular/x-driver-screen-scrn-conv.sh Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/fbdev.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fbdev.c b/src/fbdev.c
index 52acef8..5183bdc 100644
--- a/src/fbdev.c
+++ b/src/fbdev.c
@@ -613,7 +613,7 @@ static Bool
FBDevCreateScreenResources(ScreenPtr pScreen)
{
PixmapPtr pPixmap;
- ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
FBDevPtr fPtr = FBDEVPTR(pScrn);
Bool ret;
@@ -638,7 +638,7 @@ FBDevCreateScreenResources(ScreenPtr pScreen)
static Bool
FBDevShadowInit(ScreenPtr pScreen)
{
- ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
FBDevPtr fPtr = FBDEVPTR(pScrn);
if (!shadowSetup(pScreen)) {
@@ -655,7 +655,7 @@ FBDevShadowInit(ScreenPtr pScreen)
static Bool
FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
{
- ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
FBDevPtr fPtr = FBDEVPTR(pScrn);
VisualPtr visual;
int init_picture = 0;
@@ -949,7 +949,7 @@ static void *
FBDevWindowLinear(ScreenPtr pScreen, CARD32 row, CARD32 offset, int mode,
CARD32 *size, void *closure)
{
- ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
FBDevPtr fPtr = FBDEVPTR(pScrn);
if (!pScrn->vtSema)