diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 23:55:03 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 01:02:08 -0300 |
| commit | fc2bc8b80cf524c4a4800b8492b1ddcd6e693ab9 (patch) | |
| tree | c513336568a71910710e99cf3cc18b7a1d67d431 /src/image.zig | |
| parent | c7bab5ec27f8dc1058e282fbbfc8fe9f01cd78bf (diff) | |
| download | pardes-fc2bc8b80cf524c4a4800b8492b1ddcd6e693ab9.tar.gz pardes-fc2bc8b80cf524c4a4800b8492b1ddcd6e693ab9.zip | |
image: the three renderer toggles (toggleGlyphArt, togglePalette, toggleAscii, a line each) are the field flips at their one caller each, the Petscii, Palette and Ascii builtins, and the image tag test sets the fields it wants
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/image.zig')
| -rw-r--r-- | src/image.zig | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/image.zig b/src/image.zig index fe515073..357d9e94 100644 --- a/src/image.zig +++ b/src/image.zig @@ -981,18 +981,6 @@ pub fn create(p: *pardes.Pardes, id: usize, path: []const u8, raw: []u8) !*parde return pane; } -pub fn toggleGlyphArt(state: *State) void { - state.glyph_art = !state.glyph_art; -} - -pub fn togglePalette(state: *State) void { - state.pmode = if (state.pmode == .commodore) .terminal else .commodore; -} - -pub fn toggleAscii(state: *State) void { - state.ascii = !state.ascii; -} - /// Image renderer choices are pane-local, not global Config values. Keep them /// queryable where they apply: the live tag beside the image's path. /// `glyphs`: whether the picture is drawn as glyph art, which a terminal |
