From d2f2344ffad2370ed7293a48745a01d643279f5f Mon Sep 17 00:00:00 2001 From: Filippo Crocchini Date: Sun, 24 Aug 2025 14:00:36 +0200 Subject: [PATCH] Fixed c++ compatibility --- clay.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clay.h b/clay.h index cef12f4..30a7e60 100644 --- a/clay.h +++ b/clay.h @@ -2588,7 +2588,7 @@ Clay_BoundingBox Clay__ClipBoundingBox(Clay_BoundingBox outer, Clay_BoundingBox 0 ); - return (Clay_BoundingBox) { + return CLAY__INIT(Clay_BoundingBox) { .x = x, .y = y, .width = width, @@ -3204,9 +3204,9 @@ void Clay__CalculateFinalLayout(void) { context->scissorDataStack.length - 1 ); Clay__AddRenderCommand(CLAY__INIT(Clay_RenderCommand) { + .boundingBox = prevScissorData.boundingBox, .id = prevScissorData.id, .commandType = CLAY_RENDER_COMMAND_TYPE_SCISSOR_START, - .boundingBox = prevScissorData.boundingBox, }); } }