clearDirtyLine method

void clearDirtyLine(
  1. int y
)

Implementation

void clearDirtyLine(int y) {
  if (y < 0 || y >= lines.length) return;
  if (y < touched.length) {
    touched[y] = LineData.clean;
  }
  if (y < dirtyRows.length) {
    dirtyRows[y] = false;
  }
  if (y < dirtyBits.length) {
    dirtyBits[y].fillRange(0, dirtyBits[y].length, 0);
  }
}