xf86/xv: Remove unused GC pointers
Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com> Reviewed-by: Ville Syrjälä <ville.syrjala@nokia.com>
This commit is contained in:
parent
e012f2312b
commit
4f8f803280
|
@ -280,8 +280,6 @@ xf86XVScreenInit(
|
||||||
|
|
||||||
pScrn = xf86Screens[pScreen->myNum];
|
pScrn = xf86Screens[pScreen->myNum];
|
||||||
|
|
||||||
ScreenPriv->videoGC = NULL; /* for the helper */
|
|
||||||
|
|
||||||
ScreenPriv->DestroyWindow = pScreen->DestroyWindow;
|
ScreenPriv->DestroyWindow = pScreen->DestroyWindow;
|
||||||
ScreenPriv->WindowExposures = pScreen->WindowExposures;
|
ScreenPriv->WindowExposures = pScreen->WindowExposures;
|
||||||
ScreenPriv->ClipNotify = pScreen->ClipNotify;
|
ScreenPriv->ClipNotify = pScreen->ClipNotify;
|
||||||
|
@ -1123,9 +1121,6 @@ xf86XVDestroyWindow(WindowPtr pWin)
|
||||||
|
|
||||||
pPriv->pDraw = NULL;
|
pPriv->pDraw = NULL;
|
||||||
tmp = WinPriv;
|
tmp = WinPriv;
|
||||||
if(WinPriv->pGC) {
|
|
||||||
FreeGC(WinPriv->pGC, 0);
|
|
||||||
}
|
|
||||||
WinPriv = WinPriv->next;
|
WinPriv = WinPriv->next;
|
||||||
free(tmp);
|
free(tmp);
|
||||||
}
|
}
|
||||||
|
@ -1232,11 +1227,6 @@ xf86XVCloseScreen(int i, ScreenPtr pScreen)
|
||||||
|
|
||||||
if(!ScreenPriv) return TRUE;
|
if(!ScreenPriv) return TRUE;
|
||||||
|
|
||||||
if(ScreenPriv->videoGC) {
|
|
||||||
FreeGC(ScreenPriv->videoGC, 0);
|
|
||||||
ScreenPriv->videoGC = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
pScreen->DestroyWindow = ScreenPriv->DestroyWindow;
|
pScreen->DestroyWindow = ScreenPriv->DestroyWindow;
|
||||||
pScreen->WindowExposures = ScreenPriv->WindowExposures;
|
pScreen->WindowExposures = ScreenPriv->WindowExposures;
|
||||||
pScreen->ClipNotify = ScreenPriv->ClipNotify;
|
pScreen->ClipNotify = ScreenPriv->ClipNotify;
|
||||||
|
|
|
@ -43,7 +43,6 @@ typedef struct {
|
||||||
void (*AdjustFrame)(int, int, int, int);
|
void (*AdjustFrame)(int, int, int, int);
|
||||||
Bool (*EnterVT)(int, int);
|
Bool (*EnterVT)(int, int);
|
||||||
void (*LeaveVT)(int, int);
|
void (*LeaveVT)(int, int);
|
||||||
GCPtr videoGC;
|
|
||||||
xf86ModeSetProc *ModeSet;
|
xf86ModeSetProc *ModeSet;
|
||||||
} XF86XVScreenRec, *XF86XVScreenPtr;
|
} XF86XVScreenRec, *XF86XVScreenPtr;
|
||||||
|
|
||||||
|
@ -82,7 +81,6 @@ typedef struct {
|
||||||
typedef struct _XF86XVWindowRec{
|
typedef struct _XF86XVWindowRec{
|
||||||
XvPortRecPrivatePtr PortRec;
|
XvPortRecPrivatePtr PortRec;
|
||||||
struct _XF86XVWindowRec *next;
|
struct _XF86XVWindowRec *next;
|
||||||
GCPtr pGC;
|
|
||||||
} XF86XVWindowRec, *XF86XVWindowPtr;
|
} XF86XVWindowRec, *XF86XVWindowPtr;
|
||||||
|
|
||||||
#endif /* _XF86XVPRIV_H_ */
|
#endif /* _XF86XVPRIV_H_ */
|
||||||
|
|
Loading…
Reference in New Issue