limit stencil to inner instructions (#8276)

This commit is contained in:
Dexer 2023-06-10 06:34:23 -03:00 committed by GitHub
parent 0aa4c71b4a
commit d74887c7f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -118,20 +118,18 @@
PopMatrix
<Image,AsyncImage>:
canvas.before:
canvas:
Color:
rgba: self.color
StencilPush
Rectangle:
pos: self.pos
size: self.size
StencilUse
canvas:
Color:
rgba: self.color
Rectangle:
texture: self.texture
size: self.norm_image_size
pos: self.center_x - self.norm_image_size[0] / 2., self.center_y - self.norm_image_size[1] / 2.
canvas.after:
StencilUnUse
Rectangle:
pos: self.pos