diff --git a/mi/miexpose.c b/mi/miexpose.c index 6032f6020..4af84310c 100644 --- a/mi/miexpose.c +++ b/mi/miexpose.c @@ -403,9 +403,6 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what) BoxPtr pbox; xRectangle *prect; int numRects, regionnumrects; -#ifdef COMPOSITE - WindowPtr orig_pWin = pWin; -#endif /* * Distance from screen to destination drawable, use this @@ -492,6 +489,7 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what) #ifdef COMPOSITE /* Make sure alpha will sample as 1.0 for opaque windows */ if (drawable->depth == 32) { + WindowPtr orig_pWin = pWin; int effective_depth = orig_pWin->drawable.depth; if (effective_depth == 32) {