From a094f22351533ad58d76e1e1406d75e0a93ea8a0 Mon Sep 17 00:00:00 2001 From: jamoson Date: Wed, 27 Mar 2024 00:13:25 +0100 Subject: [PATCH] mkfile # updated with new file names gif.c # rewrite of annonymous structs --- src/gif.c | 48 ++++++++++++++++++++++++------------------------ src/mkfile | 4 ++-- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/gif.c b/src/gif.c index 73814bf..60fed81 100644 --- a/src/gif.c +++ b/src/gif.c @@ -1448,39 +1448,39 @@ static struct nsgif_colour_layout nsgif__bitmap_fmt_to_colour_layout( /* Set up colour component order for bitmap format. */ switch (bitmap_fmt) { + struct nsgif_colour_layout cl; default: /* Fall through. */ case NSGIF_BITMAP_FMT_R8G8B8A8: - return (struct nsgif_colour_layout) { - .r = 0, - .g = 1, - .b = 2, - .a = 3, - }; + cl.r = 0; + cl.g = 1; + cl.b = 2; + cl.a = 3; + return cl; case NSGIF_BITMAP_FMT_B8G8R8A8: - return (struct nsgif_colour_layout) { - .b = 0, - .g = 1, - .r = 2, - .a = 3, - }; + + cl.b = 0; + cl.g = 1; + cl.r = 2; + cl.a = 3; + return cl; case NSGIF_BITMAP_FMT_A8R8G8B8: - return (struct nsgif_colour_layout) { - .a = 0, - .r = 1, - .g = 2, - .b = 3, - }; + + cl.a = 0; + cl.r = 1; + cl.g = 2; + cl.b = 3; + return cl; case NSGIF_BITMAP_FMT_A8B8G8R8: - return (struct nsgif_colour_layout) { - .a = 0, - .b = 1, - .g = 2, - .r = 3, - }; + + cl.a = 0; + cl.b = 1; + cl.g = 2; + cl.r = 3; + return cl; } } diff --git a/src/mkfile b/src/mkfile index 4d4b11d..ffea373 100644 --- a/src/mkfile +++ b/src/mkfile @@ -1,8 +1,8 @@