Beispiel #1
0
        // For illustration / debugging of what's being updated.
        protected virtual void DrawUpdateRectangle(Graphics gr)
		{
			Pen pen = new Pen(Color.Gray);
			Rectangle r = UpdateRectangle.Grow(-1);
			gr.DrawRectangle(pen, r);
			pen.Dispose();
		}
Beispiel #2
0
        protected void InternalUpdateScreen(int ix, int iy)
        {
            Rectangle r = canvas.Clip(UpdateRectangle.Grow(ix, iy));

            if (canvas.OnScreen(r))
            {
                canvas.CopyToScreen(r);
            }
        }
Beispiel #3
0
        public virtual void UpdateScreen(int ix = 0, int iy = 0)
        {
            Rectangle r = canvas.Clip(UpdateRectangle.Grow(ix, iy));

            if (canvas.OnScreen(r))
            {
                canvas.CopyToScreen(r);
            }
        }
Beispiel #4
0
 public bool OnScreen(int dx, int dy)
 {
     return(canvas.OnScreen(UpdateRectangle.Grow(dx, dy)));
 }