Fix: FadeTransition glitch

The FadeTransition had visual glitches when combined with a BoxingViewportAdapter. This happened because the viewport's offset was applied twice.
This commit is contained in:
topnik-code
2020-10-24 20:22:20 +02:00
committed by GitHub
parent 6e32d1f322
commit e2728aa11f
@@ -27,8 +27,8 @@ namespace MonoGame.Extended.Screens.Transitions
public override void Draw(GameTime gameTime)
{
_spriteBatch.Begin(samplerState: SamplerState.PointClamp);
_spriteBatch.FillRectangle(_graphicsDevice.Viewport.Bounds, Color * Value);
_spriteBatch.FillRectangle(0, 0, _graphicsDevice.Viewport.Width, _graphicsDevice.Viewport.Height, Color * Value);
_spriteBatch.End();
}
}
}
}