| 1120 | } |
| 1121 | |
| 1122 | void Bitmap::Blit2x(Rect const& dst_rect, Bitmap const& src, Rect const& src_rect) { |
| 1123 | Transform xform = Transform::Scale(0.5, 0.5); |
| 1124 | |
| 1125 | pixman_image_set_transform(src.bitmap.get(), &xform.matrix); |
| 1126 | |
| 1127 | pixman_image_composite32(PIXMAN_OP_SRC, |
| 1128 | src.bitmap.get(), nullptr, bitmap.get(), |
| 1129 | src_rect.x, src_rect.y, |
| 1130 | 0, 0, |
| 1131 | dst_rect.x, dst_rect.y, |
| 1132 | dst_rect.width, dst_rect.height); |
| 1133 | |
| 1134 | pixman_image_set_transform(src.bitmap.get(), nullptr); |
| 1135 | } |
| 1136 | |
| 1137 | void Bitmap::EffectsBlit(int x, int y, int ox, int oy, |
| 1138 | Bitmap const& src, Rect const& src_rect, |
no test coverage detected