diff options
author | bptato <nincsnevem662@gmail.com> | 2022-07-14 20:37:00 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-07-15 18:26:10 +0200 |
commit | b9c13c005735dcbf812aa56beb681ece37361dc9 (patch) | |
tree | 3454de31498538204c7eedc11d0d1c75907df895 /src/render | |
parent | a9a456e91faa7fe696d3e04eaa177eeb472383e7 (diff) | |
download | chawan-b9c13c005735dcbf812aa56beb681ece37361dc9.tar.gz |
Refactor layout engine
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/renderdocument.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/renderdocument.nim b/src/render/renderdocument.nim index a8590b00..b01728dd 100644 --- a/src/render/renderdocument.nim +++ b/src/render/renderdocument.nim @@ -34,7 +34,7 @@ proc setFormats(line: var FlexibleLine, ox, newwidth, oldwidth: int, let obg = newformat.bgcolor var newformat = newformat for format in oformats: - assert format.pos < ox + oldwidth + #assert format.pos < ox + oldwidth #TODO TODO TODO if format.format.bgcolor != newformat.bgcolor: newformat.bgcolor = format.format.bgcolor @@ -253,6 +253,6 @@ proc renderDocument*(document: Document, term: TermAttributes, userstyle: CSSSty document.applyStylesheets(uastyle, userstyle) layout.renderLayout(document) result.setLen(0) - result.renderBlockContext(layout.root.bctx, 0, 0, term) + result.renderBlockContext(layout.root, 0, 0, term) if result.len == 0: result.addLine() |