shithub: atlas

Download patch

ref: 3971ccb2be32e517f6932bc88f6876d7881ff63f
parent: 5cf932b7a032a685aca7512336a70b608e605c9e
author: Sigrid Haflínudóttir <[email protected]>
date: Sat Jan 4 16:43:40 EST 2020

also write atlas dimensions to the offsets file

--- a/atlas.c
+++ b/atlas.c
@@ -183,6 +183,7 @@
 		if (o != nil)
 			fprint(fd, "%s\t%d\t%d\t%d\t%d\n", argv[r.id], r.x, r.y, r.w, r.h);
 	}
+	fprint(fd, "atlas_dimensions\t0\t0\t%d\t%d\n", w, h);
 	close(fd);
 
 	if ((b = allocmemimage(Rect(0, 0, w, h), chan)) == nil)