gdkchan пре 4 година
родитељ
комит
11b437eafc

+ 1 - 1
Ryujinx.HLE/HOS/Services/Vi/RootService/ApplicationDisplayService/Types/DisplayInfo.cs

@@ -6,7 +6,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi.RootService.ApplicationDisplayService.Type
     [StructLayout(LayoutKind.Sequential, Size = 0x60)]
     struct DisplayInfo
     {
-        public Array40<byte> Name;
+        public Array64<byte> Name;
         public bool          LayerLimitEnabled;
         public Array7<byte>  Padding;
         public ulong         LayerLimitMax;

+ 2 - 3
Ryujinx.HLE/HOS/Services/Vi/RootService/IApplicationDisplayService.cs

@@ -34,7 +34,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi.RootService
             {
                 DisplayInfo displayInfo = new DisplayInfo()
                 {
-                    Name              = new Array40<byte>(),
+                    Name              = new Array64<byte>(),
                     LayerLimitEnabled = layerLimitEnabled,
                     Padding           = new Array7<byte>(),
                     LayerLimitMax     = layerLimitMax,
@@ -123,8 +123,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi.RootService
 
             for (int i = 0; i < (int)displayCount; i++)
             {
-                context.Memory.Fill(displayInfoBuffer + (ulong)(i * Unsafe.SizeOf<DisplayInfo>()), (ulong)(Unsafe.SizeOf<DisplayInfo>()), 0x00);
-                context.Memory.Write(displayInfoBuffer, _displayInfo[i]);
+                context.Memory.Write(displayInfoBuffer + (ulong)(i * Unsafe.SizeOf<DisplayInfo>()), _displayInfo[i]);
             }
 
             context.ResponseData.Write(displayCount);