From b9150a0092ea81a0a55af295ad4030ca58f75a8e Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Tue, 18 Feb 2025 21:35:11 -0600 Subject: [PATCH] misc: chore: use target-typed new in collection initializers where type is evident --- src/Ryujinx.Graphics.Gpu/Engine/Threed/DrawManager.cs | 2 +- src/Ryujinx.HLE/HOS/Applets/Browser/BrowserApplet.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx.Graphics.Gpu/Engine/Threed/DrawManager.cs b/src/Ryujinx.Graphics.Gpu/Engine/Threed/DrawManager.cs index a2f391f25..e3b981f40 100644 --- a/src/Ryujinx.Graphics.Gpu/Engine/Threed/DrawManager.cs +++ b/src/Ryujinx.Graphics.Gpu/Engine/Threed/DrawManager.cs @@ -913,7 +913,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed Span> scissors = [ - new Rectangle(scissorX, scissorY, scissorW, scissorH) + new(scissorX, scissorY, scissorW, scissorH) ]; _context.Renderer.Pipeline.SetScissors(scissors); diff --git a/src/Ryujinx.HLE/HOS/Applets/Browser/BrowserApplet.cs b/src/Ryujinx.HLE/HOS/Applets/Browser/BrowserApplet.cs index 33d00cf34..488eca291 100644 --- a/src/Ryujinx.HLE/HOS/Applets/Browser/BrowserApplet.cs +++ b/src/Ryujinx.HLE/HOS/Applets/Browser/BrowserApplet.cs @@ -41,7 +41,7 @@ namespace Ryujinx.HLE.HOS.Applets.Browser { List result = [ - new BrowserOutput(BrowserOutputType.ExitReason, (uint)WebExitReason.ExitButton) + new(BrowserOutputType.ExitReason, (uint)WebExitReason.ExitButton) ]; _normalSession.Push(BuildResponseNew(result));