| 696 | } |
| 697 | |
| 698 | void GfxRenderer::fillRectDither(const int x, const int y, const int width, const int height, Color color) const { |
| 699 | switch (color) { |
| 700 | case Color::Clear: |
| 701 | break; |
| 702 | case Color::Black: |
| 703 | fillRectImpl<Color::Black>(x, y, width, height); |
| 704 | break; |
| 705 | case Color::White: |
| 706 | fillRectImpl<Color::White>(x, y, width, height); |
| 707 | break; |
| 708 | case Color::LightGray: |
| 709 | fillRectImpl<Color::LightGray>(x, y, width, height); |
| 710 | break; |
| 711 | case Color::DarkGray: |
| 712 | fillRectImpl<Color::DarkGray>(x, y, width, height); |
| 713 | break; |
| 714 | } |
| 715 | } |
| 716 | |
| 717 | template <Color C> |
| 718 | void GfxRenderer::fillRectImpl(const int x, const int y, const int width, const int height) const { |
no outgoing calls
no test coverage detected