about summary refs log tree commit diff stats
path: root/src/layout/engine.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/engine.nim')
-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 25da94b2..b96f11fa 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: LayoutState, d: int, p: Option[int], o: bool): int =
-  return cells(l, d, state.term.width, state.term.height, p, o)
+  return cells(l, d, state.term.width_px, state.term.height_px, p, o)
 
 func cells_w(l: CSSLength, state: LayoutState, p: int): int =
   return l.cells_in(state, state.term.ppc, p.some, true)
ref='/akkartik/mu/commit/html/apps/tui.mu.html?h=main&id=ec73ed1230d75deb0f913a32617c9f1e0a5ca640'>ec73ed12 ^
68df24fa ^










39234e89 ^
68df24fa ^
ec73ed12 ^



68df24fa ^
9cbd4199 ^
68df24fa ^

9cbd4199 ^

9f9aad34 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96