Skip to content

Commit

Permalink
limit stencil to inner instructions (#8276)
Browse files Browse the repository at this point in the history
  • Loading branch information
DexerBR committed Jun 10, 2023
1 parent 0aa4c71 commit d74887c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions kivy/data/style.kv
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d74887c

Please sign in to comment.