mirror of https://github.com/kivy/kivy.git
limit stencil to inner instructions (#8276)
This commit is contained in:
parent
0aa4c71b4a
commit
d74887c7f9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue