Records that the pixel `xy` should be `rgb` after all `op`s have been executed.
(mut self, xy: LcdXY, rgb: RGB)
| 125 | |
| 126 | /// Records that the pixel `xy` should be `rgb` after all `op`s have been executed. |
| 127 | pub(super) fn expect_pixel(mut self, xy: LcdXY, rgb: RGB) -> Self { |
| 128 | let offset = ((xy.y * self.size.width) + xy.x) * 3; |
| 129 | self.exp_fb[offset] = rgb.0; |
| 130 | self.exp_fb[offset + 1] = rgb.1; |
| 131 | self.exp_fb[offset + 2] = rgb.2; |
| 132 | self |
| 133 | } |
| 134 | |
| 135 | /// Records that the area between `x1y1` and `x2y2` is damaged after all `op`s have been |
| 136 | /// executed. |
no outgoing calls
no test coverage detected