update recoil to version 6.1.0
This commit is contained in:
parent
77f24ad3a4
commit
1e10da1323
4
3rdparty/Makefile
vendored
4
3rdparty/Makefile
vendored
@ -135,14 +135,14 @@ LUAPATCHES = lua-atari-log2.patch \
|
||||
LATESTLUAVER = $(shell curl -s -S https://www.lua.org/download.html | grep -A1 "current release is" | tail -n1 | sed 's/.*lua-\([0-9.]*\)\.tar.*/\1/' )
|
||||
LATESTLUA53VER = $(shell curl -s -S https://www.lua.org/versions.html |grep 5[.]3[.] | head -n 1 | sed 's/.*\(5[0-9.]*\).*/\1/' )
|
||||
# https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.6.1.tar.gz
|
||||
RECOILVER=5.1.1
|
||||
RECOILVER=6.1.0
|
||||
LATESTRECOILVER = $(shell curl -s -S -I https://sourceforge.net/projects/recoil/files/latest/download|grep -i "^location:"|sed 's:.*/\([0-9.]*\)/.*:\1:' )
|
||||
RECOIL=recoil-$(RECOILVER)
|
||||
RECOILARCH=$(RECOIL).tar.gz
|
||||
# https://downloads.sourceforge.net/project/recoil/recoil/4.3.0/recoil-4.3.0.tar.gz
|
||||
RECOILURL=https://downloads.sourceforge.net/project/recoil/recoil/$(RECOILVER)/$(RECOILARCH)
|
||||
RECOILURLALT=http://nanard.free.fr/grafx2/$(RECOILARCH)
|
||||
RECOILSHA256=13ad32d669c73393114da2cc2d1c1af4880fbebcfcc807ca96fc20b181d50db5
|
||||
RECOILSHA256=a10384a69de0ae4cbc6a21b2bf598e6191da9e8b2847f7aeda66ec18d66e27b9
|
||||
#https://github.com/redcode/6502/releases/download/v0.1/6502-v0.1.tar.xz
|
||||
REDCODE6502=6502-v0.1
|
||||
REDCODE6502ARCH=6502-v0.1.tar.xz
|
||||
|
||||
@ -130,7 +130,6 @@ void Load_Recoil_Image(T_IO_Context *context)
|
||||
int original_width, original_height;
|
||||
int x, y;
|
||||
int x_ratio, y_ratio;
|
||||
byte * pixels;
|
||||
const int *palette;
|
||||
enum PIXEL_RATIO ratio = PIXEL_SIMPLE;
|
||||
|
||||
@ -144,16 +143,9 @@ void Load_Recoil_Image(T_IO_Context *context)
|
||||
ratio = PIXEL_WIDE;
|
||||
else if(x_ratio == 1 && y_ratio > 1)
|
||||
ratio = PIXEL_TALL;
|
||||
pixels = GFX2_malloc(width * height);
|
||||
if (pixels == NULL)
|
||||
{
|
||||
File_error = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
// try to convert to 8bpp image
|
||||
File_error = 0;
|
||||
palette = RECOIL_ToPalette(recoil, pixels);
|
||||
palette = RECOIL_ToPalette(recoil);
|
||||
if (palette == NULL)
|
||||
{
|
||||
// 24bits
|
||||
@ -177,6 +169,7 @@ void Load_Recoil_Image(T_IO_Context *context)
|
||||
int i;
|
||||
int bpp;
|
||||
int ncolors = RECOIL_GetColors(recoil);
|
||||
const uint8_t * pixels = RECOIL_GetIndexes(recoil);
|
||||
const byte * p = pixels;
|
||||
|
||||
bpp = 8;
|
||||
@ -201,13 +194,11 @@ void Load_Recoil_Image(T_IO_Context *context)
|
||||
p += width * (y_ratio - 1);
|
||||
}
|
||||
}
|
||||
free(pixels);
|
||||
if (!File_error)
|
||||
{
|
||||
snprintf(context->Comment, COMMENT_SIZE + 1, "RECOIL: %s %d colors", RECOIL_GetPlatform(recoil), RECOIL_GetColors(recoil));
|
||||
}
|
||||
}
|
||||
}
|
||||
RECOIL_Delete(recoil);
|
||||
#ifdef WIN32
|
||||
free(tempfilename);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user