protected override void OnPaint(Alt.GUI.PaintEventArgs e) { Debug.Log("onpaint"); Alt.Sketch.Graphics graphics = e.Graphics; if (!DoubleBuffered) { graphics.FillRectangle(Alt.Sketch.Color.FromArgb((graphics is SoftwareGraphics) ? 128 : 192, Alt.Sketch.Color.DodgerBlue), ClientRectangle); } else { graphics.Clear(Alt.Sketch.Color.FromArgb((graphics is SoftwareGraphics) ? 128 : 192, Alt.Sketch.Color.DodgerBlue)); } int w = ClientWidth; int h = ClientHeight; m_Scale = viewZoom * System.Math.Min(w, h) / 23; m_CenterX = w / 2 + m_OffsetX; m_CenterY = h * 0.83 + m_OffsetY; m_DebugDraw.SetViewTransform(m_CenterX, m_CenterY, m_Scale); //Paint base.OnPaint(e); }
protected override void OnPaint(GUI.PaintEventArgs e) { Alt.Sketch.Graphics graphics = e.Graphics; if (!DoubleBuffered) { graphics.FillRectangle(Alt.Sketch.Color.FromArgb((graphics is SoftwareGraphics) ? 128 : 192, Alt.Sketch.Color.DodgerBlue), ClientRectangle); } else { graphics.Clear(Alt.Sketch.Color.FromArgb((graphics is SoftwareGraphics) ? 128 : 192, Alt.Sketch.Color.DodgerBlue)); } //Paint base.OnPaint(e); }