diff options
| author | Ac_K <Acoustik666@gmail.com> | 2023-06-01 18:24:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-01 18:24:00 +0200 |
| commit | b8f48bcf640acae519602a26fd6c4ce49c04709b (patch) | |
| tree | c411901f99d7c064e5b26bef3ddef5cd3b4e93f7 /src/Ryujinx.Ava/UI/Helpers/BitmapArrayValueConverter.cs | |
| parent | 6966211e0723685ccf1895e34e3c9e93c52fbb52 (diff) | |
UI: Fix empty homebrew icon (#5189)
* UI: Fix empty homebrew icon
We currently don't check the icon size when we read it from the homebrew data. That could cause issues at UI side since the buffer isn't null but empty. Extra check have been added UI side too.
(I cleaned up some files during my research too)
Fixes #5188
* Remove additional check
* Remove unused using
Diffstat (limited to 'src/Ryujinx.Ava/UI/Helpers/BitmapArrayValueConverter.cs')
| -rw-r--r-- | src/Ryujinx.Ava/UI/Helpers/BitmapArrayValueConverter.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Ryujinx.Ava/UI/Helpers/BitmapArrayValueConverter.cs b/src/Ryujinx.Ava/UI/Helpers/BitmapArrayValueConverter.cs index 3fd368f8..133f8dbc 100644 --- a/src/Ryujinx.Ava/UI/Helpers/BitmapArrayValueConverter.cs +++ b/src/Ryujinx.Ava/UI/Helpers/BitmapArrayValueConverter.cs @@ -21,6 +21,7 @@ namespace Ryujinx.Ava.UI.Helpers if (value is byte[] buffer && targetType == typeof(IImage)) { MemoryStream mem = new(buffer); + return new Bitmap(mem); } |
