summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 18:31:03 -0300
committerGabriel Schneider <[email protected]>2026-11-06 20:00:43 -0300
commit3e1677f526baa02179c5646223f48b316e5152e0 (patch)
tree2ac232f703a0c2f17abc0f07db4161660c0c2544 /addons
parent1b38ca0aa0bfae1177f80a6713ec6d787d2f77d4 (diff)
downloadpardes-3e1677f526baa02179c5646223f48b316e5152e0.tar.gz
pardes-3e1677f526baa02179c5646223f48b316e5152e0.zip
kinds #40, rasters as bounded messages on the wire (§17.3 C): a placement over PA_RASTER_MAX is dropped at paint and said once, a kind's frame names its placements by key and their pixels cross before it as `raster` strips of at most 4 MiB over the rows its `src` shows (only those the peer was not sent with the frame before), the peer assembles them by name in a 64 MiB cache let go by least recent use but for what a Shadow shows, a frame naming one it lacks draws its cells and asks once for its pane again, the sender checks every message against wire.max_payload (Debug's panic, release's drop and log) and a reader names an oversized one (said on the client as it joins again, logged at the session) instead of reading it as the link's end, so kinds #21's byte budget goes; wire 23; and pdf.c lays out for a view with pictures over a glyph view until an input chooses (one layout until 7c), so the 110-column window of the stall's repro shows its page
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'addons')
-rw-r--r--addons/pdf/pdf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/pdf/pdf.c b/addons/pdf/pdf.c
index 5a0448b1..088f954c 100644
--- a/addons/pdf/pdf.c
+++ b/addons/pdf/pdf.c
@@ -1096,12 +1096,14 @@ static void tick(void *v, pa_tick *t) {
t->prefix_len = n > 0 ? (uint32_t)n : 0;
}
-/* A view told: kept by its id, laid out for when it is the one (or none is). */
+/* A view told: kept by its id, laid out for when it is the one, or none
+ * is, or the one is glyph art and this shows pictures (until an input's
+ * view is taken: one layout, not one a view, until the Zig port). */
static void view(void *v, const pa_view *pv) {
pdf *st = v;
if (!st || pv->id < 1 || pv->id > VIEWS) return;
st->views[pv->id - 1] = *pv;
- if (pv->id == st->view.id || !st->view.cols) st->view = *pv;
+ if (pv->id == st->view.id || !st->view.cols || (st->view.glyphs && pv->cols && !pv->glyphs)) st->view = *pv;
for (int i = 0; i < VIEWS && !st->view.cols; i++)
if (st->views[i].cols) st->view = st->views[i];
}