Properly un/rewrap CreateWindow
Acked-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
ecf513ae11
commit
a8366277a7
@ -759,20 +759,20 @@ dummyModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
|
|||||||
return(TRUE);
|
return(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Atom VFB_PROP = 0;
|
Atom VFB_PROP = 0;
|
||||||
#define VFB_PROP_NAME "VFB_IDENT"
|
#define VFB_PROP_NAME "VFB_IDENT"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
DUMMYCreateWindow(WindowPtr pWin)
|
DUMMYCreateWindow(WindowPtr pWin)
|
||||||
{
|
{
|
||||||
DUMMYPtr dPtr = DUMMYPTR(DUMMYScrn);
|
DUMMYPtr dPtr = DUMMYPTR(DUMMYScrn);
|
||||||
WindowPtr pWinRoot;
|
WindowPtr pWinRoot;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
pScreen->CreateWindow = dPtr->CreateWindow;
|
||||||
ret = dPtr->CreateWindow(pWin);
|
ret = dPtr->CreateWindow(pWin);
|
||||||
|
pScreen->CreateWindow = DUMMYCreateWindow;
|
||||||
|
|
||||||
if(ret != TRUE)
|
if(ret != TRUE)
|
||||||
return(ret);
|
return(ret);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user