aloadimage: update to 0.6.1.1.
remove patch, it's 99a888eb1 upstream
This commit is contained in:
parent
5e489c94e3
commit
766667daac
@ -1,37 +0,0 @@
|
|||||||
diff --git a/src/tools/aloadimage/nanosvg.h b/src/tools/aloadimage/nanosvg.h
|
|
||||||
index f5058b17..716adea5 100644
|
|
||||||
--- a/src/tools/aloadimage/nanosvg.h
|
|
||||||
+++ b/src/tools/aloadimage/nanosvg.h
|
|
||||||
@@ -163,7 +163,7 @@ typedef struct NSVGimage
|
|
||||||
} NSVGimage;
|
|
||||||
|
|
||||||
// Parses SVG file from a file, returns SVG image as paths.
|
|
||||||
-NSVGimage* nsvgParseFromFile(const char* filename, const char* units, float dpi);
|
|
||||||
+NSVGimage* nsvgParseFromFile(FILE* fp, const char* units, float dpi);
|
|
||||||
|
|
||||||
// Parses SVG file from a null terminated string, returns SVG image as paths.
|
|
||||||
// Important note: changes the string.
|
|
||||||
@@ -200,7 +200,6 @@ void nsvgDelete(NSVGimage* image);
|
|
||||||
#define NSVG_ALIGN_SLICE 2
|
|
||||||
|
|
||||||
#define NSVG_NOTUSED(v) do { (void)(1 ? (void)0 : ( (void)(v) ) ); } while(0)
|
|
||||||
-#define NSVG_RGB(r, g, b) (((unsigned int)r) | ((unsigned int)g << 8) | ((unsigned int)b << 16))
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning (disable: 4996) // Switch off security warnings
|
|
||||||
@@ -2930,14 +2929,12 @@ NSVGimage* nsvgParse(char* input, const char* units, float dpi)
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
-NSVGimage* nsvgParseFromFile(const char* filename, const char* units, float dpi)
|
|
||||||
+NSVGimage* nsvgParseFromFile(FILE* fp, const char* units, float dpi)
|
|
||||||
{
|
|
||||||
- FILE* fp = NULL;
|
|
||||||
size_t size;
|
|
||||||
char* data = NULL;
|
|
||||||
NSVGimage* image = NULL;
|
|
||||||
|
|
||||||
- fp = fopen(filename, "rb");
|
|
||||||
if (!fp) goto error;
|
|
||||||
fseek(fp, 0, SEEK_END);
|
|
||||||
size = ftell(fp);
|
|
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'aloadimage'
|
# Template file for 'aloadimage'
|
||||||
# !! keep synced with arcan
|
# !! keep synced with arcan
|
||||||
pkgname=aloadimage
|
pkgname=aloadimage
|
||||||
version=0.6.1
|
version=0.6.1.1
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="arcan-${version}"
|
wrksrc="arcan-${version}"
|
||||||
build_wrksrc=src/tools/aloadimage
|
build_wrksrc=src/tools/aloadimage
|
||||||
@ -13,7 +13,7 @@ maintainer="Piraty <piraty1@inbox.ru>"
|
|||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
homepage="https://arcan-fe.com/"
|
homepage="https://arcan-fe.com/"
|
||||||
distfiles="https://github.com/letoram/arcan/archive/${version}.tar.gz"
|
distfiles="https://github.com/letoram/arcan/archive/${version}.tar.gz"
|
||||||
checksum=ca8a9b82000eef60970901641be1130b19c51a1cc2a17278e2365ca3e3a13551
|
checksum=3c36bbc53a276c03776134407b662beb1181e43c5f8d0aabe7c6fae6652cc29e
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense ../../../COPYING
|
vlicense ../../../COPYING
|
||||||
|
Loading…
x
Reference in New Issue
Block a user