mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-18 20:28:01 +00:00
Fix SDL_Rect argument casting
This commit is contained in:
parent
e5bd453f5e
commit
1c636096e5
@ -238,10 +238,10 @@ static void SDL_Clay_RenderClayCommands(Clay_SDL3RendererData *rendererData, Cla
|
|||||||
case CLAY_RENDER_COMMAND_TYPE_SCISSOR_START: {
|
case CLAY_RENDER_COMMAND_TYPE_SCISSOR_START: {
|
||||||
Clay_BoundingBox boundingBox = rcmd->boundingBox;
|
Clay_BoundingBox boundingBox = rcmd->boundingBox;
|
||||||
currentClippingRectangle = (SDL_Rect) {
|
currentClippingRectangle = (SDL_Rect) {
|
||||||
.x = boundingBox.x,
|
.x = (int)boundingBox.x,
|
||||||
.y = boundingBox.y,
|
.y = (int)boundingBox.y,
|
||||||
.w = boundingBox.width,
|
.w = (int)boundingBox.width,
|
||||||
.h = boundingBox.height,
|
.h = (int)boundingBox.height,
|
||||||
};
|
};
|
||||||
SDL_SetRenderClipRect(rendererData->renderer, ¤tClippingRectangle);
|
SDL_SetRenderClipRect(rendererData->renderer, ¤tClippingRectangle);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user