misc: chore: Fix object creation

This commit is contained in:
KeatonTheBot committed 2025-09-25 17:04:07 -05:00
1 parent 0928851966
commit 9cdd9f6dbf
48 files changed
+315 -316

No files matched your search

+3 -3
View File
@@ -430,12 +430,12 @@ namespace Ryujinx.Ava
}
var colorType = e.IsBgra ? SKColorType.Bgra8888 : SKColorType.Rgba8888;
using SKBitmap bitmap = new SKBitmap(new SKImageInfo(e.Width, e.Height, colorType, SKAlphaType.Premul));
using SKBitmap bitmap = new(new SKImageInfo(e.Width, e.Height, colorType, SKAlphaType.Premul));
Marshal.Copy(e.Data, 0, bitmap.GetPixels(), e.Data.Length);
using SKBitmap bitmapToSave = new SKBitmap(bitmap.Width, bitmap.Height);
using SKCanvas canvas = new SKCanvas(bitmapToSave);
using SKBitmap bitmapToSave = new(bitmap.Width, bitmap.Height);
using SKCanvas canvas = new(bitmapToSave);
canvas.Clear(SKColors.Black);
+1 -1
View File
@@ -170,7 +170,7 @@ namespace Ryujinx.Ava.UI.Applet
try
{
_parent.ViewModel.AppHost.NpadManager.BlockInputUpdates();
SoftwareKeyboardUIArgs args = new SoftwareKeyboardUIArgs();
SoftwareKeyboardUIArgs args = new();
args.KeyboardMode = KeyboardMode.Default;
args.InitialText = "Ryujinx";
args.StringLengthMin = 1;
@@ -124,8 +124,8 @@ namespace Ryujinx.Ava.UI.ViewModels
private ApplicationContextMenu _listAppContextMenu;
private ApplicationContextMenu _gridAppContextMenu;
private readonly object _refreshLock = new object();
private readonly object _applicationsLock = new object();
private readonly object _refreshLock = new();
private readonly object _applicationsLock = new();
public ApplicationData ListSelectedApplication
{