about summary refs log tree commit diff stats
path: root/src/render
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-05-29 16:11:32 +0200
committerbptato <nincsnevem662@gmail.com>2022-05-29 16:11:32 +0200
commit616e60b76ccd91ee190114cba3cd2faa4f882448 (patch)
tree5694fcb10b99ad73299a0bd68c6b7a720143540d /src/render
parentc5e57f02c9fe8e35f9bbc09525e268c33f6a3f33 (diff)
downloadchawan-616e60b76ccd91ee190114cba3cd2faa4f882448.tar.gz
Layout: insignificant changes regarding offset
Diffstat (limited to 'src/render')
-rw-r--r--src/render/renderdocument.nim4
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)