aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE
diff options
context:
space:
mode:
authorMary <mary@mary.zone>2022-12-01 23:06:55 +0100
committerMary <mary@mary.zone>2022-12-01 23:06:55 +0100
commitd692a9b83ebb1c0303f91adaa22cd67852f2386f (patch)
tree0c2a8c829f199526eb6c55e4c8af2b6c23d29d0b /Ryujinx.HLE
parent9677ddaa5d8424604bdbf17496f8a878855a118d (diff)
Revert "nuget: bump SixLabors.ImageSharp from 1.0.4 to 2.1.3 (#3976)"
This reverts commit 9677ddaa5d8424604bdbf17496f8a878855a118d. SixLabors.ImageShar switched to a shady and vague license starting with 2.x without mentioning it on their changelog. As a result we are staying on 1.x (licensed under Apache-2) and will seak an alternative package.
Diffstat (limited to 'Ryujinx.HLE')
-rw-r--r--Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardRendererBase.cs4
-rw-r--r--Ryujinx.HLE/Ryujinx.HLE.csproj2
2 files changed, 3 insertions, 3 deletions
diff --git a/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardRendererBase.cs b/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardRendererBase.cs
index 09f81f0f..6c0955ec 100644
--- a/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardRendererBase.cs
+++ b/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardRendererBase.cs
@@ -549,12 +549,12 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
// Convert the pixel format used in the image to the one used in the Switch surface.
- if (!_surface.DangerousTryGetSinglePixelMemory(out Memory<Argb32> pixels))
+ if (!_surface.TryGetSinglePixelSpan(out Span<Argb32> pixels))
{
return;
}
- _bufferData = MemoryMarshal.AsBytes(pixels.Span).ToArray();
+ _bufferData = MemoryMarshal.AsBytes(pixels).ToArray();
Span<uint> dataConvert = MemoryMarshal.Cast<byte, uint>(_bufferData);
Debug.Assert(_bufferData.Length == _surfaceInfo.Size);
diff --git a/Ryujinx.HLE/Ryujinx.HLE.csproj b/Ryujinx.HLE/Ryujinx.HLE.csproj
index f5d5042f..1ec92a44 100644
--- a/Ryujinx.HLE/Ryujinx.HLE.csproj
+++ b/Ryujinx.HLE/Ryujinx.HLE.csproj
@@ -24,7 +24,7 @@
<PackageReference Include="Concentus" Version="1.1.7" />
<PackageReference Include="LibHac" Version="0.17.0" />
<PackageReference Include="MsgPack.Cli" Version="1.0.1" />
- <PackageReference Include="SixLabors.ImageSharp" Version="2.1.3" />
+ <PackageReference Include="SixLabors.ImageSharp" Version="1.0.4" />
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="1.0.0-beta11" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.25.0" />
</ItemGroup>