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
However, since width and height are passed both to Image::from_raw() size for Surface::new()and toRectangle::new_sized(), my expectation is that the red rectangle would completely, seamlessly fill the yellow surface. Instead, it appears on only the lower left ~1/5th of the surface, while the rest of it remains yellow.
Environment and versions (please complete the following information):
Describe the bug
Coordinate system scale when drawing on a Surface does not match the coordinate system scale of the surface size.
To Reproduce
The above image is rendered by the following code:
However, since
width
andheight
are passed both toImage::from_raw()
size forSurface::new()
and toRectangle::new_sized()
, my expectation is that the red rectangle would completely, seamlessly fill the yellow surface. Instead, it appears on only the lower left ~1/5th of the surface, while the rest of it remains yellow.Environment and versions (please complete the following information):
The text was updated successfully, but these errors were encountered: