Repaint only dirty areas