-
Notifications
You must be signed in to change notification settings - Fork 644
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
Minimal 9slice border-image support #4594
Conversation
856786b
to
300e7e0
Compare
(*painter)->drawPixmap(dest_rect, pixmap, source_rect); | ||
(*painter)->restore(); | ||
}}; | ||
for fit in fit { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes me think that the vector should be called “fits” or “fitted_images”.
@@ -13,6 +13,8 @@ TestCase := Rectangle { | |||
source-clip-x: 20; | |||
} | |||
|
|||
out property <image> with-border: @image-url("dog.jpg", 9slice(12 13 14 15)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tests basically the code generators, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. We do not have test for renderers other than the software renderer, and that's only tested with rust.
17780f5
to
a39163f
Compare
This is important when zooming, and still allow images of 65535 pixel width or height
The test will test that things are rendered the same with a clip. But that gives bad error when rendering images with high ferquencies because a small difference in the initial condition of drawing may result in being off by a pixel.
a39163f
to
69d6798
Compare
@tronical I'll merge this soon if you don't see an objection. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not at all - looks good to me:)
9slice(...)
attribute to the @image-urlCC #1529