Render text on top of images by default
This commit is contained in:
parent
e84070acef
commit
87a613edd1
3 changed files with 35 additions and 35 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue