mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-21 01:39:32 +00:00
Merge pull request #699 from topnik-code/fadeTransition-boxingviewportadapter
Fix: FadeTransition glitch
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