RegionPtr rdpRestoreAreas(WindowPtr pWin, RegionPtr prgnExposed) { RegionRec reg; RegionPtr rv; int j; BoxRec box; LLOGLN(0, ("in rdpRestoreAreas")); RegionInit(®, NullBox, 0); RegionCopy(®, prgnExposed); g_pScreen->RestoreAreas = g_rdpScreen.RestoreAreas; rv = g_pScreen->RestoreAreas(pWin, prgnExposed); if (g_do_dirty_ons) { draw_item_add_img_region(&g_screenPriv, ®, GXcopy, RDI_IMGLL); } else { rdpup_begin_update(); for (j = REGION_NUM_RECTS(®) - 1; j >= 0; j--) { box = REGION_RECTS(®)[j]; rdpup_send_area(0, box.x1, box.y1, box.x2 - box.x1, box.y2 - box.y1); } rdpup_end_update(); } RegionUninit(®); g_pScreen->RestoreAreas = rdpRestoreAreas; return rv; }
RegionPtr rdpRestoreAreas(WindowPtr pWin, RegionPtr prgnExposed) { RegionRec reg; RegionPtr rv; int j; BoxRec box; DEBUG_OUT_OPS(("in rdpRestoreAreas\n")); RegionInit(®, NullBox, 0); RegionCopy(®, prgnExposed); g_pScreen->RestoreAreas = g_rdpScreen.RestoreAreas; rv = g_pScreen->RestoreAreas(pWin, prgnExposed); rdpup_begin_update(); for (j = REGION_NUM_RECTS(®) - 1; j >= 0; j--) { box = REGION_RECTS(®)[j]; rdpup_send_area(0, box.x1, box.y1, box.x2 - box.x1, box.y2 - box.y1); } rdpup_end_update(); RegionUninit(®); g_pScreen->RestoreAreas = rdpRestoreAreas; return rv; }