MCPcopy Create free account
hub / github.com/EasyRPG/Player / FillRect

Method FillRect

src/bitmap.cpp:759–770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757}
758
759void Bitmap::FillRect(Rect const& dst_rect, const Color &color) {
760 pixman_color_t pcolor = PixmanColor(color);
761
762 auto timage = PixmanImagePtr{pixman_image_create_solid_fill(&pcolor)};
763
764 pixman_image_composite32(PIXMAN_OP_OVER,
765 timage.get(), nullptr, bitmap.get(),
766 0, 0,
767 0, 0,
768 dst_rect.x, dst_rect.y,
769 dst_rect.width, dst_rect.height);
770}
771
772void Bitmap::Clear() {
773 if (!pixels()) {

Callers 6

HandleErrorOutputFunction · 0.80
RefreshMethod · 0.80
DrawCheckerboardFunction · 0.80
DrawMethod · 0.80
TextDrawUnderlinedFunction · 0.80
BM_FillRectFunction · 0.80

Calls 2

PixmanColorFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected