mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-15 23:19:29 +00:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user