diff options
Diffstat (limited to 'driver/xf86-video-openchrome/src/via_memcpy.c')
-rw-r--r-- | driver/xf86-video-openchrome/src/via_memcpy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/xf86-video-openchrome/src/via_memcpy.c b/driver/xf86-video-openchrome/src/via_memcpy.c index b00584bf3..b7c42d34c 100644 --- a/driver/xf86-video-openchrome/src/via_memcpy.c +++ b/driver/xf86-video-openchrome/src/via_memcpy.c @@ -525,7 +525,7 @@ cpuValid(const char *cpuinfo, char **flags) vidCopyFunc viaVidCopyInit(char *copyType, ScreenPtr pScreen) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); #ifdef linux char buf[BSIZ]; @@ -661,7 +661,7 @@ viaVidCopyInit(char *copyType, ScreenPtr pScreen) vidCopyFunc viaVidCopyInit(char *copyType, ScreenPtr pScreen) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Using default xfree86 memcpy for video.\n"); |