mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 09:58:21 +02:00
miext/shadow: Remove shadowInit
This code is nonsensical. You end up creating a screen-sized pixmap that's totally detached from everything else, which you then listen for damage on, which means you'll never hear any damage, which means your shadow update hooks will never get called. Any driver using this would be sorely disappointed. Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
cf4793d99e
commit
d5b2799772
2 changed files with 0 additions and 24 deletions
|
|
@ -196,23 +196,3 @@ shadowRemove(ScreenPtr pScreen, PixmapPtr pPixmap)
|
|||
RemoveBlockAndWakeupHandlers(shadowBlockHandler, shadowWakeupHandler,
|
||||
(void *) pScreen);
|
||||
}
|
||||
|
||||
Bool
|
||||
shadowInit(ScreenPtr pScreen, ShadowUpdateProc update, ShadowWindowProc window)
|
||||
{
|
||||
PixmapPtr pPixmap;
|
||||
|
||||
pPixmap = pScreen->CreatePixmap(pScreen, pScreen->width, pScreen->height,
|
||||
pScreen->rootDepth, 0);
|
||||
if (!pPixmap)
|
||||
return FALSE;
|
||||
|
||||
if (!shadowSetup(pScreen)) {
|
||||
pScreen->DestroyPixmap(pPixmap);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
shadowAdd(pScreen, pPixmap, update, window, SHADOW_ROTATE_0, 0);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,10 +87,6 @@ shadowAdd(ScreenPtr pScreen,
|
|||
extern _X_EXPORT void
|
||||
shadowRemove(ScreenPtr pScreen, PixmapPtr pPixmap);
|
||||
|
||||
extern _X_EXPORT Bool
|
||||
|
||||
shadowInit(ScreenPtr pScreen, ShadowUpdateProc update, ShadowWindowProc window);
|
||||
|
||||
extern _X_EXPORT void *shadowAlloc(int width, int height, int bpp);
|
||||
|
||||
extern _X_EXPORT void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue