private static Gdk.Rectangle [] GetRectangles(Gdk.Region region) { #if true return(new Gdk.Rectangle [] { region.Clipbox }); #else return(region.GetRectangles()); #endif }
private void PreloadRegion(Gdk.Region region, int step) { Gdk.Rectangle [] rects = region.GetRectangles(); if (step < 0) { Array.Reverse(rects); } foreach (Gdk.Rectangle preload in rects) { Preload(preload, false); } }