diff options
author | CoprDistGit <infra@openeuler.org> | 2023-09-14 03:04:49 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-09-14 03:04:49 +0000 |
commit | c7ce84c1d067a19220abb6dbbf87c4118a2e14fe (patch) | |
tree | 21b3d6375c71d5a9930c021fbde26f0c4bf4ec92 /1196.patch | |
parent | 2fc16999fe6f92aead8f85c10ce3451da4c7eabd (diff) |
automatic import of stbopeneuler23.03
Diffstat (limited to '1196.patch')
-rw-r--r-- | 1196.patch | 22 |
1 files changed, 22 insertions, 0 deletions
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" <code@musicinmybrain.net> +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) { |