MonoGame.Extended icon indicating copy to clipboard operation
MonoGame.Extended copied to clipboard

ClipRectangles does not work when clipping textures from the top down

Open BradBergstrom opened this issue 6 months ago • 1 comments

I noticed that when BitmapFontExtensions.DrawString and SpriteBatchExtensions.Draw and passing in a ClippingRectangle parameter, there are unexpected artifacts that are rendered when the ClippingRectangle passed in is clipping the BitmapFont or Texture from the Top.

I don't notice any issues when the ClippingRectangle intersects the BitmapFont/Texture from the bottom. Here is a screenshot.

Image

BradBergstrom avatar Jun 06 '25 22:06 BradBergstrom

I have pushed a pull request that has a fix for this: https://github.com/craftworkgames/MonoGame.Extended/pull/995

BradBergstrom avatar Jun 06 '25 22:06 BradBergstrom