From a8366277a70797a7fa9c8c0b739a5fdac066816f Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 17 Nov 2009 13:36:30 -0500 Subject: [PATCH] Properly un/rewrap CreateWindow Acked-by: Aaron Plattner Signed-off-by: Adam Jackson --- src/dummy_driver.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dummy_driver.c b/src/dummy_driver.c index 6f4b562..560b9b5 100644 --- a/src/dummy_driver.c +++ b/src/dummy_driver.c @@ -759,20 +759,20 @@ dummyModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode) return(TRUE); } - Atom VFB_PROP = 0; #define VFB_PROP_NAME "VFB_IDENT" - - static Bool DUMMYCreateWindow(WindowPtr pWin) { DUMMYPtr dPtr = DUMMYPTR(DUMMYScrn); WindowPtr pWinRoot; int ret; - + + pScreen->CreateWindow = dPtr->CreateWindow; ret = dPtr->CreateWindow(pWin); + pScreen->CreateWindow = DUMMYCreateWindow; + if(ret != TRUE) return(ret);