Przeglądaj źródła

Fix palette exports

tags/v1.8.0
Jon Beniston 3 lat temu
rodzic
commit
429e73a2b1
2 zmienionych plików z 4 dodań i 4 usunięć
  1. +2
    -2
      src/apt.h
  2. +2
    -2
      src/color.c

+ 2
- 2
src/apt.h Wyświetl plik

@@ -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

+ 2
- 2
src/color.c Wyświetl plik

@@ -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"


Ładowanie…
Anuluj
Zapisz