You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was having this issue with Image where if I did something like Image(5,6).shift_down(1), it would cause it to return an image of size 5x5 instead of 5x6. After looking through the code, I saw that the width was being passed twice into the blit function:
I was having this issue with
Image
where if I did something likeImage(5,6).shift_down(1)
, it would cause it to return an image of size 5x5 instead of 5x6. After looking through the code, I saw that the width was being passed twice into the blit function:micropython/source/microbit/microbitimage.cpp
Lines 324 to 328 in a92ca9b
It looks like
self->width(), self->width()
should be replaced withself->width(), self->height()
on lines 325 and 326 for this to function correctly.The text was updated successfully, but these errors were encountered: