Sign in
Join now
pumpkin-os
pds.dad
/
Star
Starred
Star
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
A fork of pulp-os for the xteink4 adding custom apps
Star
Starred
Star
Something went wrong. Try again.
Fork
Eye filled
Watch
Watching
Watch
Overview
Overview
Issues
Issues
Pulls
Pulls
Pipelines
Pipelines
pumpkin-os
/
src
4 folders
·
1 file
at
main
pds.dad
·
resolves all the oddities from the new app
·
5mo ago
0f2c66f9
apps
resolves all the oddities from the new app
5mo ago
bin
bare bare min for a new app
5mo ago
fonts
perf: comprehensive speed, memory, and power optimizations Speed: - Swap blit_1bpp_270 loop order (x-outer/y-inner) for sequential strip buffer writes; batch source byte reads (strip.rs) - Batch ASCII advance in wrap_proportional with direct glyph array indexing, bypassing per-byte function call chain (paging.rs) - Skip prescan_image_heights for text-only pages via fast MARKER byte scan before expensive ZIP/SD setup (images.rs) - Remove redundant 4KB replay buffer copy in phase 3 RED RAM write; send strip data directly (ssd1677.rs) - Skip phase 3 sync when a deferred transition is queued, avoiding ~15ms of rendering that will be immediately overdrawn (scheduler.rs) Memory (~35KB static savings): - Heap-alloc EpubToc on demand via Option<Box<EpubToc>> (~13KB) - Heap-alloc prefetch buffer as Vec<u8> instead of [u8; 8192] (~8KB) - Reduce TITLE_CAP 96→64 across DirEntry/BmListEntry/EpubMeta (~4.6KB) - Reduce ZipIndex MAX_ENTRIES 512→256 (~4.5KB) - Free BootConsole after boot via heap Box instead of static (~3KB) - Reduce MAX_PAGES 1024→512 (~2KB) - Shrink title_len/max_lines/qa_count from usize to u8 Power: - Adaptive input polling: 10ms during active input, 50ms when idle after 1 second, reducing ADC wakeups by ~80% during reading
7mo ago
ui
settings rewrite, reading themes, button swap, expanded character set settings app: - rewrite with 6 items: sleep, ghost clear, book font, UI font, reading theme, swap buttons - dynamic visible_items() computed from available screen space - scroll support when items overflow visible area reading themes: - add ReadingTheme struct with margin_h, margin_v, line_spacing_pct - 4 presets: Compact / Default / Relaxed / Spacious - replace hardcoded TEXT_W/TEXT_Y/TEXT_AREA_H/MARGIN in reader text paths with runtime fields (text_margin, text_y, text_w, text_area_h) - theme-aware line spacing in apply_font_metrics() - wire theme propagation through manager.propagate_fonts() - apply_theme_layout() called in on_enter and on_resume button swap: - ButtonMapper swaps Back<->Left, Confirm<->Right (not volume) - ButtonFeedback uses swap flag to show correct physical labels - sync_button_config() in manager updates mapper + bumps on change reader improvements: - remove unused progress bar (READER_PROGRESS_H, PROGRESS_Y, PROGRESS_W) - fix inline image clipping: ceiling division for img_lines reservation, clamp blit_h to remaining vertical space - add LongPress(NextJump) -> end of chapter, LongPress(PrevJump) -> start - images.rs uses runtime text_w/text_area_h instead of constants shared widgets: - add selectable_row.rs (draw_selection, draw_selection_if_visible) - add list.rs (ListSelection scroll helper) - add format.rs (draw_position_indicator, fmt_position, fmt_percent) - refactor home bookmarks and quick_menu to use shared selection widget character support: - add ~70 codepoints to build.rs: currency, math, arrows, symbols, Latin Extended-B (Vietnamese, Romanian) config rewrite: - SystemSettings gains reading_theme (u8) and swap_buttons (bool) - SETTINGS.TXT parse/write updated with section comments
7mo ago
lib.rs
Remove smol-epub from kernel crate; improve EpubState encapsulation Or if you want a two-line version with a body: Remove smol-epub from kernel crate; improve EpubState encapsulation Inline fnv1a_icase, define DecodedImage locally, make image decode pluggable via registered callback. Move epub pipeline methods to impl EpubState and privatize internal fields (name_hash, archive_size, chapter_sizes). Kernel now compiles with zero format-specific dependencies.
7mo ago