void DirtyPoint(int x, int y) { if (x < DirtyMinX) DirtyMinX = x; if (y < DirtyMinY) DirtyMinY = y; if (x > DirtyMaxX) DirtyMaxX = x; if (y > DirtyMaxY) DirtyMaxY = y; }