summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2012-02-10 13:36:46 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-04-01 12:20:32 +0100
commitdf7f08820bf692c1342e02e36108d75267da8148 (patch)
treeb7959b0b3a64f7626c4030968c71f3a8c74c3977
parent9d8e3062e769f55eadd25523bd25d2ccb83150e4 (diff)
Compute GDI region for damaged extent in a non-retarded way
Compute GDI region for damaged extent in a non-retarded way in winShadowUpdateDDNL (need to fix other engines likewise)
-rw-r--r--hw/xwin/winshadddnl.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/hw/xwin/winshadddnl.c b/hw/xwin/winshadddnl.c
index 63d48adb6..2df8df979 100644
--- a/hw/xwin/winshadddnl.c
+++ b/hw/xwin/winshadddnl.c
@@ -720,17 +720,8 @@ winShadowUpdateDDNL (ScreenPtr pScreen,
{
BoxPtr pBoxExtents = RegionExtents(damage);
- /* Compute a GDI region from the damaged region */
- hrgnCombined = CreateRectRgn (pBox->x1, pBox->y1, pBox->x2, pBox->y2);
- dwBox--;
- pBox++;
- while (dwBox--)
- {
- hrgnTemp = CreateRectRgn (pBox->x1, pBox->y1, pBox->x2, pBox->y2);
- CombineRgn (hrgnCombined, hrgnCombined, hrgnTemp, RGN_OR);
- DeleteObject (hrgnTemp);
- pBox++;
- }
+ /* Compute a GDI region from the damaged region extent */
+ hrgnCombined = CreateRectRgn (pBoxExtents->x1, pBoxExtents->y1, pBoxExtents->x2, pBoxExtents->y2);
/* Install the GDI region as a clipping region */
SelectClipRgn (pScreenPriv->hdcScreen, hrgnCombined);