From c7ce84c1d067a19220abb6dbbf87c4118a2e14fe Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 14 Sep 2023 03:04:49 +0000 Subject: automatic import of stb --- 1196.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 1196.patch (limited to '1196.patch') diff --git a/1196.patch b/1196.patch new file mode 100644 index 0000000..705f67e --- /dev/null +++ b/1196.patch @@ -0,0 +1,22 @@ +From 49c16b0c2a4efa72d0ce6ea05d3fa7d9e8fc6cba Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" +Date: Thu, 19 Aug 2021 12:57:27 -0400 +Subject: [PATCH] Add missing initializer braces in stb_easy_font.h + +--- + stb_easy_font.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/stb_easy_font.h b/stb_easy_font.h +index b66325847b..5f7511560a 100644 +--- a/stb_easy_font.h ++++ b/stb_easy_font.h +@@ -202,7 +202,7 @@ static int stb_easy_font_print(float x, float y, char *text, unsigned char color + float start_x = x; + int offset = 0; + +- stb_easy_font_color c = { 255,255,255,255 }; // use structure copying to avoid needing depending on memcpy() ++ stb_easy_font_color c = { { 255,255,255,255 } }; // use structure copying to avoid needing depending on memcpy() + if (color) { c.c[0] = color[0]; c.c[1] = color[1]; c.c[2] = color[2]; c.c[3] = color[3]; } + + while (*text && offset < vbuf_size) { -- cgit v1.2.3