@@ -245,7 +245,7 @@ public void Draw(Texture2D texture, Rectangle destinationRectangle, Rectangle? s
245245 /// <param name="color"></param>
246246 /// <param name="rotation"></param>
247247 /// <param name="depth"></param>
248- public void Draw ( Texture2D texture , Vector2 position , Rectangle ? sourceRectangle , Color color , float rotation , Vector2 scale , float depth = 0.0f )
248+ public void Draw ( Texture2D texture , Vector2 position , Rectangle ? sourceRectangle , Color color , float rotation , Vector2 scale , float depth = 0.0f , bool drawLine = false )
249249 {
250250 SetTextureFiltering ( TextureFiltering . Nearest ) ;
251251 color = CrossEngineStuff . MultiplyColor ( color , Opacity ) ;
@@ -254,7 +254,8 @@ public void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle
254254
255255#if MONOGAME || FNA
256256 position = Transform . Apply ( position ) ;
257- _renderer . Draw ( texture , position , sourceRectangle , color , rotation , Vector2 . Zero , scale , SpriteEffects . None , depth ) ;
257+ _renderer . Draw ( texture , position , sourceRectangle , color , rotation ,
258+ drawLine ? new Vector2 ( 0f , 0.5f ) : Vector2 . Zero , scale , SpriteEffects . None , depth ) ;
258259#elif STRIDE
259260 position = Transform . Apply ( position ) ;
260261 _renderer . Draw ( texture , position , sourceRectangle , color , rotation , Vector2 . Zero , scale , SpriteEffects . None , ImageOrientation . AsIs , depth ) ;
0 commit comments