From 1c636096e5a1fc7502e2d391fff16d2c89249fad Mon Sep 17 00:00:00 2001 From: to_matih Date: Fri, 14 Mar 2025 18:29:50 +0000 Subject: [PATCH] Fix SDL_Rect argument casting --- renderers/SDL3/clay_renderer_SDL3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/renderers/SDL3/clay_renderer_SDL3.c b/renderers/SDL3/clay_renderer_SDL3.c index 72b8613..401dc97 100644 --- a/renderers/SDL3/clay_renderer_SDL3.c +++ b/renderers/SDL3/clay_renderer_SDL3.c @@ -238,10 +238,10 @@ static void SDL_Clay_RenderClayCommands(Clay_SDL3RendererData *rendererData, Cla case CLAY_RENDER_COMMAND_TYPE_SCISSOR_START: { Clay_BoundingBox boundingBox = rcmd->boundingBox; currentClippingRectangle = (SDL_Rect) { - .x = boundingBox.x, - .y = boundingBox.y, - .w = boundingBox.width, - .h = boundingBox.height, + .x = (int)boundingBox.x, + .y = (int)boundingBox.y, + .w = (int)boundingBox.width, + .h = (int)boundingBox.height, }; SDL_SetRenderClipRect(rendererData->renderer, ¤tClippingRectangle); break;