From e631a8ff0cf2f539fb2c310daf4b379ec23a11dd Mon Sep 17 00:00:00 2001 From: Luis Michaelis Date: Sat, 11 Nov 2023 22:00:10 +0100 Subject: [PATCH] fix(native): mark `ZkColor` as packed and sizeof() == 4 --- ZenKit/NativeLoader/NativeFunctions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZenKit/NativeLoader/NativeFunctions.cs b/ZenKit/NativeLoader/NativeFunctions.cs index 232ae57..413b559 100644 --- a/ZenKit/NativeLoader/NativeFunctions.cs +++ b/ZenKit/NativeLoader/NativeFunctions.cs @@ -3636,7 +3636,7 @@ public delegate void ZkDaedalusVm_registerExternalDefault(UIntPtr slf, ZkDaedalu namespace NativeStructs { - [StructLayout(LayoutKind.Sequential)] + [StructLayout(LayoutKind.Sequential, Pack = 1, Size = 4)] public struct ZkColor { public byte R, G, B, A;