equal
deleted
inserted
replaced
138 ) { |
138 ) { |
139 let yd = y as isize + dir; |
139 let yd = y as isize + dir; |
140 if mask.contains_y(yd as usize) { |
140 if mask.contains_y(yd as usize) { |
141 stack.push((xl, xr, yd as usize, dir)); |
141 stack.push((xl, xr, yd as usize, dir)); |
142 } |
142 } |
143 }; |
143 } |
144 |
144 |
145 let start_x_l = (start_point.x - 1) as usize; |
145 let start_x_l = (start_point.x - 1) as usize; |
146 let start_x_r = start_point.x as usize; |
146 let start_x_r = start_point.x as usize; |
147 for dir in [-1, 1].iter().cloned() { |
147 for dir in [-1, 1].iter().cloned() { |
148 push( |
148 push( |