Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image: Fix stencil instructions leaking to user canvas.before/canvas instructions #8276

Merged
merged 1 commit into from
Jun 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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