protected void InternalUpdateScreen(int ix, int iy) { Rectangle r = canvas.Clip(UpdateRectangle.Grow(ix, iy)); if (canvas.OnScreen(r)) { canvas.CopyToScreen(r); } }
public virtual void GetBackground() { background?.Dispose(); background = null; backgroundRectangle = canvas.Clip(UpdateRectangle); if (canvas.OnScreen(backgroundRectangle)) { background = canvas.GetImage(backgroundRectangle); } }