From 3c233e380524d6842d396fd0a1fb9aeacf34d35f Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 28 Aug 2024 08:00:52 +0200 Subject: [IMP] Add ipc_construct_packet function to IPC protocol implementation. [IMP] Update Endian enum to match the one from the IPC protocol. [IMP] MUST_PASS works in debug only now. Signed-off-by: Amlal El Mahrouss --- dev/ZKA/Modules/CoreCG/WindowRenderer.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dev/ZKA/Modules/CoreCG') diff --git a/dev/ZKA/Modules/CoreCG/WindowRenderer.hxx b/dev/ZKA/Modules/CoreCG/WindowRenderer.hxx index 1a7d1660..580e2197 100644 --- a/dev/ZKA/Modules/CoreCG/WindowRenderer.hxx +++ b/dev/ZKA/Modules/CoreCG/WindowRenderer.hxx @@ -34,6 +34,8 @@ namespace CG struct UI_WINDOW_STRUCT final { + static constexpr auto cChildElementCount = 255; + Char w_window_name[255]{0}; Char w_class_name[255]{0}; Int32 w_type{0}; @@ -43,7 +45,7 @@ namespace CG Int32 w_w{0}; Int32 w_h{0}; Size w_child_count{0}; - struct UI_WINDOW_STRUCT* w_child_elements[255]{0}; + struct UI_WINDOW_STRUCT* w_child_elements[cChildElementCount]{0}; struct UI_WINDOW_STRUCT* w_parent{nullptr}; UInt32* display_ptr{nullptr}; Bool w_needs_repaint{false}; -- cgit v1.2.3