Skip to content

Commit

Permalink
misc: chore: use target-typed new in collection initializers where ty…
Browse files Browse the repository at this point in the history
…pe is evident
  • Loading branch information
GreemDev committed Feb 19, 2025
1 parent c1002d4 commit b9150a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Ryujinx.Graphics.Gpu/Engine/Threed/DrawManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ public void Clear(ThreedClass engine, int argument, int layerCount)

Span<Rectangle<int>> scissors =
[
new Rectangle<int>(scissorX, scissorY, scissorW, scissorH)
new(scissorX, scissorY, scissorW, scissorH)
];

_context.Renderer.Pipeline.SetScissors(scissors);
Expand Down
2 changes: 1 addition & 1 deletion src/Ryujinx.HLE/HOS/Applets/Browser/BrowserApplet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public ResultCode Start(AppletSession normalSession, AppletSession interactiveSe
{
List<BrowserOutput> result =
[
new BrowserOutput(BrowserOutputType.ExitReason, (uint)WebExitReason.ExitButton)
new(BrowserOutputType.ExitReason, (uint)WebExitReason.ExitButton)
];

_normalSession.Push(BuildResponseNew(result));
Expand Down

0 comments on commit b9150a0

Please sign in to comment.