Commit af1c4b9b authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

NXmiexpose.c: mark NX changes

parent 9e051eab
...@@ -107,9 +107,6 @@ miWindowExposures(pWin, prgn, other_exposed) ...@@ -107,9 +107,6 @@ miWindowExposures(pWin, prgn, other_exposed)
WindowPtr pWin; WindowPtr pWin;
register RegionPtr prgn, other_exposed; register RegionPtr prgn, other_exposed;
{ {
int total;
RegionPtr exposures = prgn; RegionPtr exposures = prgn;
if (pWin->backStorage && prgn) if (pWin->backStorage && prgn)
/* /*
...@@ -146,15 +143,19 @@ miWindowExposures(pWin, prgn, other_exposed) ...@@ -146,15 +143,19 @@ miWindowExposures(pWin, prgn, other_exposed)
exposures = other_exposed; exposures = other_exposed;
} }
#ifdef NXAGENT_SERVER
/* /*
* If the number of rectangles is greater * If the number of rectangles is greater
* than 4, let the function decide. * than 4, let the function decide.
*/ */
total = RegionNumRects(exposures); int total = RegionNumRects(exposures);
if (clientInterested && exposures && (total > RECTLIMIT || if (clientInterested && exposures && (total > RECTLIMIT ||
(total > 4 && nxagentExtentsPredicate(total) == 1))) (total > 4 && nxagentExtentsPredicate(total) == 1)))
#else
if (clientInterested && exposures && (RegionNumRects(exposures) > RECTLIMIT))
#endif
{ {
/* /*
* If we have LOTS of rectangles, we decide to take the extents * If we have LOTS of rectangles, we decide to take the extents
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment