瀏覽代碼

Fix palette exports

tags/v1.8.0
Jon Beniston 3 年之前
父節點
當前提交
429e73a2b1
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. +2
    -2
      src/apt.h
  2. +2
    -2
      src/color.c

+ 2
- 2
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

+ 2
- 2
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"


Loading…
取消
儲存