about summary refs log tree commit diff stats
path: root/src/layout
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-01-23 12:55:41 +0100
committerbptato <nincsnevem662@gmail.com>2022-01-23 12:55:41 +0100
commit0b19885b33c53e2250a3a91326e5f146ccfa1492 (patch)
treeb97c011ec31561f43b60df0abc89e2dcaf19d5ed /src/layout
parent7a2cda0e992da40684c193791b5865bb643df95e (diff)
downloadchawan-0b19885b33c53e2250a3a91326e5f146ccfa1492.tar.gz
Consider cell ratio when calculating lengths
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/engine.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index cfd2a1dd..3f16c8ac 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -9,7 +9,7 @@ import utils/twtstr
 import io/term
 
 func cells_in(l: CSSLength, state: Viewport, d: int, p: Option[int], o: bool): int =
-  return cells(l, d, state.term.width_px, state.term.height_px, p, o)
+  return cells(l, d, state.term, p, o)
 
 func cells_w(l: CSSLength, state: Viewport, p: int): int =
   return l.cells_in(state, state.term.ppc, p.some, true)