Render text on top of images by default

This commit is contained in:
Héctor Ramón Jiménez 2024-08-03 16:23:30 +02:00
parent e84070acef
commit 87a613edd1
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 35 additions and 35 deletions

View file

@ -178,6 +178,16 @@ impl Renderer {
engine::adjust_clip_mask(clip_mask, clip_bounds);
}
for image in &layer.images {
self.engine.draw_image(
image,
Transformation::scale(scale_factor),
pixels,
clip_mask,
clip_bounds,
);
}
for group in &layer.text {
for text in group.as_slice() {
self.engine.draw_text(
@ -190,16 +200,6 @@ impl Renderer {
);
}
}
for image in &layer.images {
self.engine.draw_image(
image,
Transformation::scale(scale_factor),
pixels,
clip_mask,
clip_bounds,
);
}
}
if !overlay.is_empty() {