about summary refs log tree commit diff stats
path: root/src/display
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-17 13:29:15 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-17 13:30:15 +0100
commit3fe649010975686e9072678e4a4aafef6e4241fc (patch)
treea9a5eeaf5338eaba60e658240599faf6b7121588 /src/display
parent4e264e9d75844382e81bd8315671ca7e2f7bade3 (diff)
downloadchawan-3fe649010975686e9072678e4a4aafef6e4241fc.tar.gz
winattrs: remove unnecessary call, fix height_px fallback
no need for every new buffer to query the window size
Diffstat (limited to 'src/display')
-rw-r--r--src/display/winattrs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/winattrs.nim b/src/display/winattrs.nim
index 06666263..1fe07080 100644
--- a/src/display/winattrs.nim
+++ b/src/display/winattrs.nim
@@ -54,5 +54,5 @@ proc getWindowAttributes*(tty: File): WindowAttributes =
     ppc: ppc,
     ppl: ppl,
     width_px: ppc * width,
-    height_px: ppl * width
+    height_px: ppl * height
   )