MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / fillRectDither

Method fillRectDither

lib/GfxRenderer/GfxRenderer.cpp:698–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696}
697
698void 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
717template <Color C>
718void GfxRenderer::fillRectImpl(const int x, const int y, const int width, const int height) const {

Callers 6

drawKeyboardKeyMethod · 0.80
drawRecentBookCoverMethod · 0.80
drawRecentBookCoverMethod · 0.80
drawTabBarMethod · 0.80
drawRecentBookCoverMethod · 0.80
renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected