diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-09 02:04:25 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-09 02:14:10 -0300 |
| commit | c78d362fa20393621ac198861f891439f9d832e9 (patch) | |
| tree | 7ba6d82f7dca1926abf7a985cf3830c69d21c90c /src/pardes.zig | |
| parent | 69b993d585cfb14c607f46aba500b141b85516ff (diff) | |
| download | pardes-c78d362fa20393621ac198861f891439f9d832e9.tar.gz pardes-c78d362fa20393621ac198861f891439f9d832e9.zip | |
locality: caller-led moves: MAX_JUMPS into Jump.zig (Core's unused alias goes), RasterPolicy and rasterPolicy beside Kind.viewOf, Names.relative beside Query.startSource, fs.find_skip beside Stream's max_walk_depth, File.drawGutter and drawWrapMarkers beside body_layer.renderBody; each unit's only users are in its new file
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/pardes.zig')
| -rw-r--r-- | src/pardes.zig | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/pardes.zig b/src/pardes.zig index e9d38ad2..298822bc 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -110,16 +110,6 @@ pub const can_attach = platform == .tui or platform == .gui; pub const fonts = if (font_picker) @import("fonts.zig") else struct {}; -/// The raster a frontend wants a kind's picture at (Kind.viewOf, a -/// `pa_view`): a terminal's kitty images go down a wire, so smaller; a -/// window rasterizes for its display. -pub const RasterPolicy = struct { dpi: u16, max_dimension: u16, match_viewport: bool }; -/// A view's: a window's denser than a terminal's. By the view's frontend, -/// never the build's, so every core of a session asks a kind alike. -pub fn rasterPolicy(windowed: bool) RasterPolicy { - return if (windowed) .{ .dpi = 192, .max_dimension = 4096, .match_viewport = true } else .{ .dpi = 96, .max_dimension = 1200, .match_viewport = false }; -} - pub const Pane = panes.Pane; const Text = panes.Text; @@ -143,7 +133,6 @@ pub const NOTICE_LAYER_BASE = MAX_PANES + MAX_COLS + 1; /// being most of it). pub const MAX_COLS = 16; const column_weight_unit = layout.column_weight_unit; -pub const MAX_JUMPS = 64; pub const TOPBAR_H: u16 = 1; pub const COLBAR_H: u16 = 1; pub const BOX_H: u16 = 1; |
