Commit 91e8b295 authored by Dave Airlie's avatar Dave Airlie
Browse files

fbdev: convert to new screen conversion APIs.



Generated using util/modular/x-driver-screen-scrn-conv.sh
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 6e29cf8c
...@@ -613,7 +613,7 @@ static Bool ...@@ -613,7 +613,7 @@ static Bool
FBDevCreateScreenResources(ScreenPtr pScreen) FBDevCreateScreenResources(ScreenPtr pScreen)
{ {
PixmapPtr pPixmap; PixmapPtr pPixmap;
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
FBDevPtr fPtr = FBDEVPTR(pScrn); FBDevPtr fPtr = FBDEVPTR(pScrn);
Bool ret; Bool ret;
...@@ -638,7 +638,7 @@ FBDevCreateScreenResources(ScreenPtr pScreen) ...@@ -638,7 +638,7 @@ FBDevCreateScreenResources(ScreenPtr pScreen)
static Bool static Bool
FBDevShadowInit(ScreenPtr pScreen) FBDevShadowInit(ScreenPtr pScreen)
{ {
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
FBDevPtr fPtr = FBDEVPTR(pScrn); FBDevPtr fPtr = FBDEVPTR(pScrn);
if (!shadowSetup(pScreen)) { if (!shadowSetup(pScreen)) {
...@@ -655,7 +655,7 @@ FBDevShadowInit(ScreenPtr pScreen) ...@@ -655,7 +655,7 @@ FBDevShadowInit(ScreenPtr pScreen)
static Bool static Bool
FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
{ {
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
FBDevPtr fPtr = FBDEVPTR(pScrn); FBDevPtr fPtr = FBDEVPTR(pScrn);
VisualPtr visual; VisualPtr visual;
int init_picture = 0; int init_picture = 0;
...@@ -949,7 +949,7 @@ static void * ...@@ -949,7 +949,7 @@ static void *
FBDevWindowLinear(ScreenPtr pScreen, CARD32 row, CARD32 offset, int mode, FBDevWindowLinear(ScreenPtr pScreen, CARD32 row, CARD32 offset, int mode,
CARD32 *size, void *closure) CARD32 *size, void *closure)
{ {
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
FBDevPtr fPtr = FBDEVPTR(pScrn); FBDevPtr fPtr = FBDEVPTR(pScrn);
if (!pScrn->vtSema) if (!pScrn->vtSema)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment