Gets the start address of the pixel `x`/`y` in the framebuffer.
(&self, x: usize, y: usize)
| 219 | |
| 220 | /// Gets the start address of the pixel `x`/`y` in the framebuffer. |
| 221 | fn fb_addr(&self, x: usize, y: usize) -> usize { |
| 222 | debug_assert!(x < self.size_pixels.width); |
| 223 | debug_assert!(y < self.size_pixels.height); |
| 224 | ((y * self.size_pixels.width) + x) * self.stride |
| 225 | } |
| 226 | |
| 227 | /// Extends the current damage area to include the area between between `x1y1` and `x2y2` |
| 228 | /// (inclusive) as damaged. |
no outgoing calls
no test coverage detected