public void Paint(PaintVisitor p) { #if DEBUG //if (__aa_dbugId == 5) //{ //} dbugCounter.dbugBoxPaintCount++; #endif if (_isVisible) { //offset if (_mayHasViewport) { p.OffsetCanvasOrigin(-this.ViewportX, -this.ViewportY); PaintImp(p); p.OffsetCanvasOrigin(this.ViewportX, this.ViewportY); } else { PaintImp(p); } } }
public void Paint(PaintVisitor p) { #if DEBUG dbugCounter.dbugBoxPaintCount++; #endif if (this._isVisible) { //offset if (this.mayHasViewport) { p.OffsetCanvasOrigin(-this.ViewportX, -this.ViewportY); PaintImp(p); p.OffsetCanvasOrigin(this.ViewportX, this.ViewportY); } else { PaintImp(p); } } }