Fix SDL_Rect argument casting

This commit is contained in:
to_matih 2025-03-14 18:29:50 +00:00
parent e5bd453f5e
commit 1c636096e5
No known key found for this signature in database
GPG Key ID: 339C52934C34B8CB

View File

@ -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, &currentClippingRectangle);
break;