mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-04-24 06:47:44 +02:00
misc: chore: use target-typed new in collection initializers where type is evident
This commit is contained in:
parent
c1002d4826
commit
b9150a0092
2 changed files with 2 additions and 2 deletions
|
@ -913,7 +913,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
|
||||||
|
|
||||||
Span<Rectangle<int>> scissors =
|
Span<Rectangle<int>> scissors =
|
||||||
[
|
[
|
||||||
new Rectangle<int>(scissorX, scissorY, scissorW, scissorH)
|
new(scissorX, scissorY, scissorW, scissorH)
|
||||||
];
|
];
|
||||||
|
|
||||||
_context.Renderer.Pipeline.SetScissors(scissors);
|
_context.Renderer.Pipeline.SetScissors(scissors);
|
||||||
|
|
|
@ -41,7 +41,7 @@ namespace Ryujinx.HLE.HOS.Applets.Browser
|
||||||
{
|
{
|
||||||
List<BrowserOutput> result =
|
List<BrowserOutput> result =
|
||||||
[
|
[
|
||||||
new BrowserOutput(BrowserOutputType.ExitReason, (uint)WebExitReason.ExitButton)
|
new(BrowserOutputType.ExitReason, (uint)WebExitReason.ExitButton)
|
||||||
];
|
];
|
||||||
|
|
||||||
_normalSession.Push(BuildResponseNew(result));
|
_normalSession.Push(BuildResponseNew(result));
|
||||||
|
|
Loading…
Add table
Reference in a new issue