public void EndDraw() { _drawing = false; if (_dirtyRect.IsEmpty) { return; } _outputDevice.Lock(); try { _outputDevice.MoveBuffer(_buffer); _outputDevice.AddDirtyRect(_dirtyRect.ToRectangle()); } finally { _outputDevice.Unlock(); } }
public void EndDraw() { _drawing = false; if (_dirtyRect.IsEmpty) { return; } _outputDevice.Lock(); try { _outputDevice.MoveBuffer(_buffer); _outputDevice.AddDirtyRect(_dirtyRect.ToRectangle()); } finally { _outputDevice.Unlock(); } }