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

Method Blit2x

src/bitmap.cpp:1122–1135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1120}
1121
1122void 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
1137void Bitmap::EffectsBlit(int x, int y, int ox, int oy,
1138 Bitmap const& src, Rect const& src_rect,

Callers 2

UpdateDisplayMethod · 0.80
BM_Blit2xFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected