From 429e73a2b1f258450d3c5b07184e9cdcba5780a1 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Tue, 16 Feb 2021 17:09:39 +0000 Subject: [PATCH] Fix palette exports --- src/apt.h | 4 ++-- src/color.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apt.h b/src/apt.h index f5e03ca..d0894ba 100644 --- a/src/apt.h +++ b/src/apt.h @@ -61,7 +61,7 @@ int APT_API apt_cropNoise(apt_image_t *img); apt_rgb_t APT_API apt_applyPalette(char *palette, int val); apt_rgb_t APT_API apt_RGBcomposite(apt_rgb_t top, float top_a, apt_rgb_t bottom, float bottom_a); -char APT_API apt_TempPalette[256*3]; -char APT_API apt_PrecipPalette[58*3]; +extern char APT_API apt_TempPalette[256*3]; +extern char APT_API apt_PrecipPalette[58*3]; #endif diff --git a/src/color.c b/src/color.c index c49bade..9d1b635 100644 --- a/src/color.c +++ b/src/color.c @@ -37,7 +37,7 @@ apt_rgb_t apt_RGBcomposite(apt_rgb_t top, float top_a, apt_rgb_t bottom, float b } // The "I totally didn't just steal this from WXtoImg" palette -char TempPalette[256*3] = { +char apt_TempPalette[256*3] = { "\x45\x0\x8f\x46\x0\x91\x47\x0\x92\x48\x0\x94\x49\x0\x96\x4a\x0\x98\x4b\x0\x9b\x4d\x0\x9d" "\x4e\x0\xa0\x50\x0\xa2\x51\x0\xa5\x52\x0\xa7\x54\x0\xaa\x56\x0\xae\x57\x0\xb1" "\x58\x0\xb4\x5a\x0\xb7\x5c\x0\xba\x5e\x0\xbd\x5f\x0\xc0\x61\x0\xc4\x64\x0\xc8" @@ -77,7 +77,7 @@ char TempPalette[256*3] = { "\xc8\x0\x0\xcc\x0\x0\xcc\x0\x0" }; -char PrecipPalette[58*3] = { +char apt_PrecipPalette[58*3] = { "\x8\x89\x41\x0\xc5\x44\x0\xd1\x2c\x0\xe3\x1c\x0\xf9\x6\x14\xff\x0\x3e\xff\x0\x5d\xff\x0" "\x80\xff\x0\xab\xff\x0\xcd\xfe\x0\xf8\xff\x0\xff\xe6\x0\xff\xb8\x0\xff\x98\x0" "\xff\x75\x0\xff\x49\x0\xfe\x26\x0\xff\x4\x0\xdf\x0\x0\xa8\x0\x0\x87\x0\x0"