(&mut self, xy: PixelsXY)
| 466 | } |
| 467 | |
| 468 | fn draw_pixel(&mut self, xy: PixelsXY) -> io::Result<()> { |
| 469 | let xy = self.clip_xy(xy); |
| 470 | match xy { |
| 471 | Some(xy) => self.fill(xy, xy), |
| 472 | None => Ok(()), |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | fn draw_poly(&mut self, points: &[PixelsXY]) -> io::Result<()> { |
| 477 | self.without_sync(|self2| drawing::draw_poly(self2, points)) |