mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
dri2: declare variables where needed in DRI2CanFlip()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
a790d65210
commit
01f62a1b49
@@ -921,17 +921,15 @@ Bool
|
||||
DRI2CanFlip(DrawablePtr pDraw)
|
||||
{
|
||||
ScreenPtr pScreen = pDraw->pScreen;
|
||||
WindowPtr pWin, pRoot;
|
||||
PixmapPtr pWinPixmap, pRootPixmap;
|
||||
|
||||
if (pDraw->type == DRAWABLE_PIXMAP)
|
||||
return TRUE;
|
||||
|
||||
pRoot = pScreen->root;
|
||||
pRootPixmap = pScreen->GetWindowPixmap(pRoot);
|
||||
WindowPtr pRoot = pScreen->root;
|
||||
PixmapPtr pRootPixmap = pScreen->GetWindowPixmap(pRoot);
|
||||
|
||||
pWin = (WindowPtr) pDraw;
|
||||
pWinPixmap = pScreen->GetWindowPixmap(pWin);
|
||||
WindowPtr pWin = (WindowPtr) pDraw;
|
||||
PixmapPtr pWinPixmap = pScreen->GetWindowPixmap(pWin);
|
||||
if (pRootPixmap != pWinPixmap)
|
||||
return FALSE;
|
||||
if (!RegionEqual(&pWin->clipList, &pRoot->winSize))
|
||||
|
||||
Reference in New Issue
Block a user