From 807bc25ae7d3ccb3ab09d681c5b98cbaae126f4c Mon Sep 17 00:00:00 2001 From: gmasil <54176035+gmasil@users.noreply.github.com> Date: Tue, 13 May 2025 15:26:13 +0200 Subject: [PATCH] [Core] use CLAY__DEFAULT_STRUCT macro --- clay.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clay.h b/clay.h index 3dde73b..14849a0 100644 --- a/clay.h +++ b/clay.h @@ -3900,7 +3900,7 @@ CLAY_WASM_EXPORT("Clay_GetScrollOffset") Clay_Vector2 Clay_GetScrollOffset(void) { Clay_Context* context = Clay_GetCurrentContext(); if (context->booleanWarnings.maxElementsExceeded) { - return CLAY__INIT(Clay_Vector2){0}; + return CLAY__INIT(Clay_Vector2) CLAY__DEFAULT_STRUCT; } Clay_LayoutElement *openLayoutElement = Clay__GetOpenLayoutElement(); // If the element has no id attached at this point, we need to generate one @@ -3913,7 +3913,7 @@ Clay_Vector2 Clay_GetScrollOffset(void) { return mapping->scrollPosition; } } - return CLAY__INIT(Clay_Vector2){0}; + return CLAY__INIT(Clay_Vector2) CLAY__DEFAULT_STRUCT; } CLAY_WASM_EXPORT("Clay_UpdateScrollContainers")