diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-07-13 10:51:35 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2018-07-13 10:51:35 +0200 |
commit | a8f63ee70a866cce43ee4b1bb5ba95ef8044243f (patch) | |
tree | 713c9d172e5e441ae131d6902d9e27f4cd9e89c8 /tex/context/base/mkiv/mlib-int.lua | |
parent | ff693671b6540fa81d2ad7aecdbe786a4df97335 (diff) | |
download | context-a8f63ee70a866cce43ee4b1bb5ba95ef8044243f.tar.gz |
2018-07-13 09:55:00
Diffstat (limited to 'tex/context/base/mkiv/mlib-int.lua')
-rw-r--r-- | tex/context/base/mkiv/mlib-int.lua | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/tex/context/base/mkiv/mlib-int.lua b/tex/context/base/mkiv/mlib-int.lua index bd3ba213f..5abc49a52 100644 --- a/tex/context/base/mkiv/mlib-int.lua +++ b/tex/context/base/mkiv/mlib-int.lua @@ -97,7 +97,7 @@ mp.HSize = mp.CurrentWidth mp.VSize = mp.CurrentHeight mp.LastPageNumber = mp.NOfPages -function mp.PageFraction () +function mp.PageFraction() local lastpage = getcount("lastpageno") if lastpage > 1 then mpprint((getcount("realpageno")-1)/(lastpage-1)) @@ -124,18 +124,9 @@ function mp.OverlayDepth () mpprint(getdimen("d_overlay_depth") *factor) function mp.OverlayLineWidth () mpprint(getdimen("d_overlay_linewidth")*factor) end function mp.OverlayOffset () mpprint(getdimen("d_overlay_offset") *factor) end -function mp.defaultcolormodel() +function mp.mf_default_color_model() local colormethod = getcount("MPcolormethod") - -- if colormethod == 0 then - -- return 1 - -- elseif colormethod == 1 then - -- return 1 - -- elseif colormethod == 2 then - -- return 3 - -- else - -- return 3 - -- end - return (colormethod == 0 or colormethod == 1) and 1 or 3 + return mpprint((colormethod == 0 or colormethod == 1) and 1 or 3) end -- not much difference (10000 calls in a graphic neither as expansion seems to win |