diff options
author | Eduardo Julian | 2021-05-24 18:50:59 -0400 |
---|---|---|
committer | Eduardo Julian | 2021-05-24 18:50:59 -0400 |
commit | 1ffd2dd7e37d3be90522dfe768226334f60577f5 (patch) | |
tree | f66034447735ec275ba343c965fab178a8a74e78 /stdlib/source/test | |
parent | 2afeb97b7c53ed146ec2cb996f61f1a7d56b372d (diff) |
Using offset+distance instead of from+to for text clipping.
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/test/lux/data/text.lux | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/source/test/lux/data/text.lux b/stdlib/source/test/lux/data/text.lux index 8102ae30e..b5c9f433b 100644 --- a/stdlib/source/test/lux/data/text.lux +++ b/stdlib/source/test/lux/data/text.lux @@ -274,7 +274,7 @@ #0))) (_.cover [/.clip /.clip'] (|> [(/.clip 0 sizeL sample) - (/.clip sizeL (/.size sample) sample) + (/.clip sizeL (n.- sizeL (/.size sample)) sample) (/.clip' sizeL sample) (/.clip' 0 sample)] (case> [(#.Right _l) (#.Right _r) (#.Right _r') (#.Right _f)] |