about summary refs log tree commit diff stats
path: root/src/local
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-08-23 16:14:04 +0200
committerbptato <nincsnevem662@gmail.com>2024-08-23 16:14:04 +0200
commit80b060be33ce7eea7a4bab18dbfe652cf6d36c0b (patch)
tree3e9956660114a48990632d2c15f689146def0f03 /src/local
parentb7c2c15a9c2503c01bb63e9e9c4c04378192a1dd (diff)
downloadchawan-80b060be33ce7eea7a4bab18dbfe652cf6d36c0b.tar.gz
winattrs: un-snakeify
Diffstat (limited to 'src/local')
-rw-r--r--src/local/container.nim2
-rw-r--r--src/local/pager.nim2
-rw-r--r--src/local/term.nim8
3 files changed, 6 insertions, 6 deletions
diff --git a/src/local/container.nim b/src/local/container.nim
index a21af3af..046e2bc8 100644
--- a/src/local/container.nim
+++ b/src/local/container.nim
@@ -1893,7 +1893,7 @@ proc windowChange*(container: Container; attrs: WindowAttributes) =
       var attrs = attrs
       # subtract status line height
       attrs.height -= 1
-      attrs.height_px -= attrs.ppl
+      attrs.heightPx -= attrs.ppl
       container.iface.windowChange(attrs).then(proc() =
         container.needslines = true
       )
diff --git a/src/local/pager.nim b/src/local/pager.nim
index 43f0d8c4..7c2dde27 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -1942,7 +1942,7 @@ proc connected(pager: Pager; container: Container; response: Response) =
     var attrs = pager.attrs
     # subtract status line height
     attrs.height -= 1
-    attrs.height_px -= attrs.ppl
+    attrs.heightPx -= attrs.ppl
     container.process = pager.forkserver.forkBuffer(
       container.config,
       container.url,
diff --git a/src/local/term.nim b/src/local/term.nim
index 82a892dd..71d32343 100644
--- a/src/local/term.nim
+++ b/src/local/term.nim
@@ -593,13 +593,13 @@ proc applyConfigDimensions(term: Terminal) =
     term.attrs.ppc = int(term.config.display.pixels_per_column)
   if term.attrs.ppl == 0 or term.config.display.force_pixels_per_line:
     term.attrs.ppl = int(term.config.display.pixels_per_line)
-  term.attrs.width_px = term.attrs.ppc * term.attrs.width
-  term.attrs.height_px = term.attrs.ppl * term.attrs.height
+  term.attrs.widthPx = term.attrs.ppc * term.attrs.width
+  term.attrs.heightPx = term.attrs.ppl * term.attrs.height
   if term.imageMode == imSixel:
     if term.sixelMaxWidth == 0:
-      term.sixelMaxWidth = term.attrs.width_px
+      term.sixelMaxWidth = term.attrs.widthPx
     if term.sixelMaxHeight == 0:
-      term.sixelMaxHeight = term.attrs.height_px
+      term.sixelMaxHeight = term.attrs.heightPx
 
 proc applyConfig(term: Terminal) =
   # colors, formatting