Commit be003f25 authored by Cyril Brulebois's avatar Cyril Brulebois Committed by Julien Cristau
Browse files

Perform XV initialization only if the server supports it.



Use XV from server's xorg-server.h to determine whether to perform XV
initialization.
Signed-off-by: default avatarCyril Brulebois <kibi@debian.org>
Reviewed-by: default avatarJulien Cristau <jcristau@debian.org>
Signed-off-by: default avatarJulien Cristau <jcristau@debian.org>
parent 20909cd8
...@@ -896,6 +896,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) ...@@ -896,6 +896,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
fPtr->CloseScreen = pScreen->CloseScreen; fPtr->CloseScreen = pScreen->CloseScreen;
pScreen->CloseScreen = FBDevCloseScreen; pScreen->CloseScreen = FBDevCloseScreen;
#if XV
{ {
XF86VideoAdaptorPtr *ptr; XF86VideoAdaptorPtr *ptr;
...@@ -904,6 +905,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) ...@@ -904,6 +905,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
xf86XVScreenInit(pScreen,ptr,n); xf86XVScreenInit(pScreen,ptr,n);
} }
} }
#endif
TRACE_EXIT("FBDevScreenInit"); TRACE_EXIT("FBDevScreenInit");
......
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