From 317add7a076365243f42bee27a0dc6f330477009 Mon Sep 17 00:00:00 2001 From: Stephen T Date: Fri, 31 Jan 2025 02:41:04 -0600 Subject: [PATCH] Format similar to existing code. --- renderers/SDL2/clay_renderer_SDL2.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/renderers/SDL2/clay_renderer_SDL2.c b/renderers/SDL2/clay_renderer_SDL2.c index b1a80cc..08dadad 100644 --- a/renderers/SDL2/clay_renderer_SDL2.c +++ b/renderers/SDL2/clay_renderer_SDL2.c @@ -39,7 +39,12 @@ static int NUM_CIRCLE_SEGMENTS = 16; //all rendering is performed by a single SDL call, avoiding multiple RenderRect + plumbing choice for circles. static void SDL_RenderFillRoundedRect(SDL_Renderer* renderer, const SDL_FRect rect, const float cornerRadius, const Clay_Color _color) { - const SDL_Color color = { (Uint8)(_color.r), (Uint8)(_color.g), (Uint8)(_color.b), (Uint8)(_color.a), }; + const SDL_Color color = (SDL_Color) { + .r = (Uint8)_color.r, + .g = (Uint8)_color.g, + .b = (Uint8)_color.b, + .a = (Uint8)_color.a, + }; int indexCount = 0, vertexCount = 0;