-
Notifications
You must be signed in to change notification settings - Fork 45
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
Accept PIL Image instances in kiva.agg draw_image() #682
Conversation
@@ -37,7 +37,7 @@ def _draw_mainlayer(self, gc, view_bounds=None, mode="default"): | |||
if self.image is None: | |||
return | |||
|
|||
gc.draw_image(self.image, (0, 0, gc.width(), gc.height())) | |||
gc.draw_image(self.image, (0, 0, self.width, self.height)) |
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 got broken by HiDPI support. The correct approach is to use the component bounds.
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.
LGTM. I tested this locally and I don't see the error on this branch that I saw on the main branch .
test failure -
|
Yeah. Didn't realize we were testing for input handling done in SWIG. |
Thanks for the review |
Fixes #681.