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

Method Fill

src/bitmap.cpp:751–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749}
750
751void Bitmap::Fill(const Color &color) {
752 pixman_color_t pcolor = PixmanColor(color);
753
754 pixman_box32_t box = { 0, 0, width(), height() };
755
756 pixman_image_fill_boxes(PIXMAN_OP_SRC, bitmap.get(), &pcolor, 1, &box);
757}
758
759void Bitmap::FillRect(Rect const& dst_rect, const Color &color) {
760 pixman_color_t pcolor = PixmanColor(color);

Callers 6

DrawMethod · 0.80
CreateMethod · 0.80
DrawBackgroundMethod · 0.80
DrawMethod · 0.80
BM_FillFunction · 0.80

Calls 2

PixmanColorFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected