mi: delete unused code
pBSReg is always NULL, so the statement after the conditional will never be reached. Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net>
This commit is contained in:
parent
7d8cabd027
commit
5098801b3a
|
@ -66,7 +66,6 @@ miClearToBackground(WindowPtr pWin,
|
||||||
{
|
{
|
||||||
BoxRec box;
|
BoxRec box;
|
||||||
RegionRec reg;
|
RegionRec reg;
|
||||||
RegionPtr pBSReg = NullRegion;
|
|
||||||
BoxPtr extents;
|
BoxPtr extents;
|
||||||
int x1, y1, x2, y2;
|
int x1, y1, x2, y2;
|
||||||
|
|
||||||
|
@ -114,12 +113,10 @@ miClearToBackground(WindowPtr pWin,
|
||||||
|
|
||||||
RegionIntersect(®, ®, &pWin->clipList);
|
RegionIntersect(®, ®, &pWin->clipList);
|
||||||
if (generateExposures)
|
if (generateExposures)
|
||||||
(*pWin->drawable.pScreen->WindowExposures)(pWin, ®, pBSReg);
|
(*pWin->drawable.pScreen->WindowExposures)(pWin, ®, NULL);
|
||||||
else if (pWin->backgroundState != None)
|
else if (pWin->backgroundState != None)
|
||||||
miPaintWindow(pWin, ®, PW_BACKGROUND);
|
miPaintWindow(pWin, ®, PW_BACKGROUND);
|
||||||
RegionUninit(®);
|
RegionUninit(®);
|
||||||
if (pBSReg)
|
|
||||||
RegionDestroy(pBSReg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue
Block a user