summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/mlib-svg.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-05-09 17:39:46 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-05-09 17:39:46 +0200
commit4396699cb99f42f6378ed7229788bbceb898851a (patch)
tree27558ace7551b158ad0d515aa7e761caef844e96 /tex/context/base/mkxl/mlib-svg.lmt
parenta2ebcf294b4f2b10a3ecef1d1d3c7de7694c498c (diff)
downloadcontext-4396699cb99f42f6378ed7229788bbceb898851a.tar.gz
2021-05-09 17:14:00
Diffstat (limited to 'tex/context/base/mkxl/mlib-svg.lmt')
-rw-r--r--tex/context/base/mkxl/mlib-svg.lmt4
1 files changed, 1 insertions, 3 deletions
diff --git a/tex/context/base/mkxl/mlib-svg.lmt b/tex/context/base/mkxl/mlib-svg.lmt
index 1b2114ec9..3e6d68099 100644
--- a/tex/context/base/mkxl/mlib-svg.lmt
+++ b/tex/context/base/mkxl/mlib-svg.lmt
@@ -514,13 +514,11 @@ local colorcomponents, withcolor, thecolor, usedcolors do
local f_svggray = formatters['svggray(%.3N)']
local f_svgname = formatters['"%s"']
- local extract = bit32.extract
-
local triplets = setmetatableindex(function(t,k)
-- we delay building all these strings
local v = svgcolors[k]
if v then
- v = { extract(v,16,8)/255, extract(v,8,8)/255, extract(v,0,8)/255 }
+ v = { ((v>>16)&0xFF)/0xFF, ((v>>8)&0xFF)/0xFF, ((v>>0)&0xFF)/0xFF }
else
v = false
end