Closed x3ro closed 9 months ago
Hey folks, thanks for building this project 🦀
I ran into an index out of bounds error when playing around with the blit_bitmap example when using the SvgBackend instead of the BitmapBackend:
index out of bounds
SvgBackend
BitmapBackend
blit_bitmap
iw, ih
get_size()
DrawingBackend
w, h
w
iw
The attached change fixes this, though I'm not entirely sure whether the fix takes everything into account 🤔
Hey folks, thanks for building this project 🦀
I ran into an
index out of bounds
error when playing around with the blit_bitmap example when using theSvgBackend
instead of theBitmapBackend
:blit_bitmap
receives dimensionsiw, ih
as parameters, but also callsget_size()
to retrieve the size of theDrawingBackend
w, h
to check whether or not the image is being drawn out of bounds (I think)w
was used instead ofiw
The attached change fixes this, though I'm not entirely sure whether the fix takes everything into account 🤔