summaryrefslogtreecommitdiff
path: root/source/luametatex/source/lua/lmtnodelib.c
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2023-06-01 11:20:49 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2023-06-01 11:20:49 +0200
commite2ffa186c8e622ce9235533b91bb2399dd051672 (patch)
tree6e1e9ef371a8b26e6eb4120041762bf3d9fdf2f3 /source/luametatex/source/lua/lmtnodelib.c
parent9111ac6d97d7931a2a9bbdad69f5c54de4172318 (diff)
downloadcontext-e2ffa186c8e622ce9235533b91bb2399dd051672.tar.gz
2023-05-30 22:24:00
Diffstat (limited to 'source/luametatex/source/lua/lmtnodelib.c')
-rw-r--r--source/luametatex/source/lua/lmtnodelib.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/luametatex/source/lua/lmtnodelib.c b/source/luametatex/source/lua/lmtnodelib.c
index 66cf528fc..531d6d857 100644
--- a/source/luametatex/source/lua/lmtnodelib.c
+++ b/source/luametatex/source/lua/lmtnodelib.c
@@ -1704,19 +1704,19 @@ static int nodelib_direct_setscales(lua_State *L)
if (lua_type(L, 2) == LUA_TNUMBER) {
glyph_scale(n) = (halfword) lmt_roundnumber(L, 2);
if (! glyph_scale(n)) {
- glyph_scale(n) = 1000;
+ glyph_scale(n) = scaling_factor;
}
}
if (lua_type(L, 3) == LUA_TNUMBER) {
glyph_x_scale(n) = (halfword) lmt_roundnumber(L, 3);
if (! glyph_x_scale(n)) {
- glyph_x_scale(n) = 1000;
+ glyph_x_scale(n) = scaling_factor;
}
}
if (lua_type(L, 4) == LUA_TNUMBER) {
glyph_y_scale(n) = (halfword) lmt_roundnumber(L, 4);
if (! glyph_y_scale(n)) {
- glyph_y_scale(n) = 1000;
+ glyph_y_scale(n) = scaling_factor;
}
}
}
@@ -7134,17 +7134,17 @@ static int nodelib_common_setfield(lua_State *L, int direct, halfword n)
} else if (lua_key_eq(s, scale)) {
glyph_scale(n) = (halfword) lmt_roundnumber(L, 3);
if (! glyph_scale(n)) {
- glyph_scale(n) = 1000;
+ glyph_scale(n) = scaling_factor;
}
} else if (lua_key_eq(s, xscale)) {
glyph_x_scale(n) = (halfword) lmt_roundnumber(L, 3);
if (! glyph_x_scale(n)) {
- glyph_x_scale(n) = 1000;
+ glyph_x_scale(n) = scaling_factor;
}
} else if (lua_key_eq(s, yscale)) {
glyph_y_scale(n) = (halfword) lmt_roundnumber(L, 3);
if (! glyph_y_scale(n)) {
- glyph_y_scale(n) = 1000;
+ glyph_y_scale(n) = scaling_factor;
}
} else if (lua_key_eq(s, data)) {
glyph_data(n) = lmt_opthalfword(L, 3, unused_attribute_value);