diff options
author | bptato <nincsnevem662@gmail.com> | 2022-05-29 16:11:32 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-05-29 16:11:32 +0200 |
commit | 616e60b76ccd91ee190114cba3cd2faa4f882448 (patch) | |
tree | 5694fcb10b99ad73299a0bd68c6b7a720143540d /src/render | |
parent | c5e57f02c9fe8e35f9bbc09525e268c33f6a3f33 (diff) | |
download | chawan-616e60b76ccd91ee190114cba3cd2faa4f882448.tar.gz |
Layout: insignificant changes regarding offset
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 ab7c906e..798709c4 100644 --- a/src/render/renderdocument.nim +++ b/src/render/renderdocument.nim @@ -232,8 +232,8 @@ proc renderBlockContext(grid: var FlexibleGrid, ctx: BlockContext, x, y: int, te while stack.len > 0: var (ctx, x, y) = stack.pop() - x += ctx.relx - y += ctx.rely + x += ctx.offset.absx + y += ctx.offset.absy if ctx.specified{"background-color"}.rgba.a != 0: #TODO color blending grid.paintBackground(ctx.specified{"background-color"}, x, y, x + ctx.width, y + ctx.height, term) |