| 757 | } |
| 758 | |
| 759 | void 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 | |
| 772 | void Bitmap::Clear() { |
| 773 | if (!pixels()) { |
no test coverage detected