ref: 25a2df03db0887fcb57dd77ae6d51af8ac017b36
parent: bc56c51c61e71212eaa99f39aae9c481a1d3311b
author: Nicola Pisanti <nicola@npisanti.com>
date: Tue Jul 2 05:21:10 EDT 2019
update L to match orcaJS
--- a/sim.c
+++ b/sim.c
@@ -576,7 +576,7 @@
Glyph buff[Glyphs_index_count];
Glyph* gs = gbuffer + y * width + x + 1;
for (Usz i = 0; i < len; ++i) {
- Usz offset = (i + rate) % len;
+ Usz offset = (i + len - rate) % len;
buff[i] = gs[offset];
}
for (Usz i = 0; i < len; ++i) {