Index: tools/lua/gradients.lua |
diff --git a/tools/lua/gradients.lua b/tools/lua/gradients.lua |
index 2a14ff637b990b821993994a19345e0b915d8769..833b8b9ca13f6a9f5d02aa0227a365a9569661ac 100644 |
--- a/tools/lua/gradients.lua |
+++ b/tools/lua/gradients.lua |
@@ -1,5 +1,12 @@ |
-function sk_scrape_startcanvas(c, fileName) end |
-function sk_scrape_endcanvas(c, fileName) end |
+filename = "" |
+ |
+function sk_scrape_startcanvas(c, fileName) |
+ filename = fileName |
+end |
+ |
+function sk_scrape_endcanvas(c, fileName) |
+ |
+end |
LuaDoubleNearlyZero = 1.0 / bit32.lshift(1.0, 12) |
@@ -27,6 +34,8 @@ function sk_scrape_accumulate(t) |
gradients[i] = {} |
+ gradients[i].filename = filename |
+ |
gradients[i].colorCount = g.colorCount |
gradients[i].type = g.type |
gradients[i].tile = g.tile |
@@ -70,7 +79,8 @@ function sk_scrape_summarize() |
end |
end |
- io.write(string.format("%d %s %s %d %d %s %s\n", |
+ io.write(string.format("%s %d %s %s %d %d %s %s\n", |
+ v.filename, |
v.colorCount, |
v.type, |
v.tile, |