shithub: npe

Download patch

ref: c969b291d8a6c543311b0c66ae770b7cb48ba10b
parent: 65dff35d3e8f0423e979be67d3d9e29deeadaed0
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Mar 16 11:37:54 EDT 2021

sdl: remove ft2-clone label, try to use argv0

--- a/libnpe/_main.c
+++ b/libnpe/_main.c
@@ -11,5 +11,7 @@
 {
 	setfcr(getfcr() & ~(FPINVAL|FPOVFL));
 
+	argv0 = *argv; /* for sdl to set at least some kind of label */
+
 	threadexitsall(npe_main_renamed(argc, argv) == 0 ? nil : "error");
 }
--- a/libnpe_sdl2/sdl2.c
+++ b/libnpe_sdl2/sdl2.c
@@ -221,7 +221,7 @@
 
 	if(memimageinit() < 0)
 		goto err;
-	if(initdraw(nil, nil, "ft2-clone") < 0)
+	if(initdraw(nil, nil, argv0) < 0)
 		goto err;
 	if((mctl = initmouse(nil, screen)) == nil)
 		goto err;