From 26478dc220e8b970305e33edeb18d9d3fd060b9a Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sun, 24 May 2020 17:38:39 -0700 Subject: [PATCH] Fix inkscape call --- Editor/icons/packicons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Editor/icons/packicons.c b/Editor/icons/packicons.c index ced45e8a6..b017d6e99 100644 --- a/Editor/icons/packicons.c +++ b/Editor/icons/packicons.c @@ -161,7 +161,7 @@ int main(int argc, char* argv[]) fflush(stdout); #if _WIN32 - snprintf(command, 2048, " --export-png=\"%s/icon_pack.png\" --export-width=%d --export-height=%d \"%s\"", + snprintf(command, 2048, " --export-filename=\"%s/icon_pack.png\" --export-width=%d --export-height=%d \"%s\"", TMPDIR, i, i, argv[2]); STARTUPINFOA sinfo = {sizeof(STARTUPINFOA)}; @@ -179,7 +179,7 @@ int main(int argc, char* argv[]) CloseHandle(pinfo.hProcess); #else - snprintf(command, 2048, "%s --export-png=\"%s/icon_pack.png\" --export-width=%d --export-height=%d \"%s\"", + snprintf(command, 2048, "%s --export-filename=\"%s/icon_pack.png\" --export-width=%d --export-height=%d \"%s\"", argv[1], TMPDIR, i, i, argv[2]); fp = popen(command, "r"); if (!fp)