Xteink-X4-crosspoint-reader/src
Eunchurn Park fecd1849b9
Add cover image display in *Continue Reading* card with framebuffer caching (#200)
## Summary

* **What is the goal of this PR?** (e.g., Fixes a bug in the user
authentication module,

Display the book cover image in the **"Continue Reading"** card on the
home screen, with fast navigation using framebuffer caching.

* **What changes are included?**

- Display book cover image in the "Continue Reading" card on home screen
- Load cover from cached BMP (same as sleep screen cover)
- Add framebuffer store/restore functions (`copyStoredBwBuffer`,
`freeStoredBwBuffer`) for fast navigation after initial render
- Fix `drawBitmap` scaling bug: apply scale to offset only, not to base
coordinates
- Add white text boxes behind title/author/continue reading label for
readability on cover
- Support both EPUB and XTC file cover images
- Increase HomeActivity task stack size from 2048 to 4096 for cover
image rendering

## Additional Context

* Add any other information that might be helpful for the reviewer
(e.g., performance implications, potential risks, specific areas to
focus on).

- Performance: First render loads cover from SD card (~800ms),
subsequent navigation uses cached framebuffer (~instant)
- Memory: Framebuffer cache uses ~48KB (6 chunks × 8KB) while on home
screen, freed on exit
- Fallback: If cover image is not available, falls back to standard
text-only display
- The `drawBitmap` fix corrects a bug where screenY = (y + offset) scale
was incorrectly scaling the base coordinates. Now correctly uses screenY
= y + (offset scale)
2026-01-14 21:24:02 +11:00
..
activities Add cover image display in *Continue Reading* card with framebuffer caching (#200) 2026-01-14 21:24:02 +11:00
images Move to SDK EInkDisplay and enable anti-aliased 2-bit text (#5) 2025-12-08 19:48:49 +11:00
network Support up to 500 character file names (#275) 2026-01-07 23:43:19 +11:00
util Make extension checks case-insensitive (#273) 2026-01-07 21:07:23 +11:00
Battery.h Public release 2025-12-03 22:06:45 +11:00
CrossPointSettings.cpp Add option to hide battery percentage. (#297) 2026-01-12 20:53:58 +11:00
CrossPointSettings.h Add option to hide battery percentage. (#297) 2026-01-12 20:53:58 +11:00
CrossPointState.cpp Ensure new custom sleep image every time (#300) 2026-01-14 21:05:08 +11:00
CrossPointState.h Ensure new custom sleep image every time (#300) 2026-01-14 21:05:08 +11:00
fontIds.h Swap from Aleo to Bookerly for wider glyph support (#172) 2025-12-31 02:28:25 +11:00
main.cpp Ensure new custom sleep image every time (#300) 2026-01-14 21:05:08 +11:00
MappedInputManager.cpp Add button mapping for Left, Back, Confirm, Right (#173) 2025-12-31 02:46:35 +11:00
MappedInputManager.h Add exFAT support (#150) 2025-12-30 16:09:30 +11:00
ScreenComponents.cpp Add option to hide battery percentage. (#297) 2026-01-12 20:53:58 +11:00
ScreenComponents.h Add option to hide battery percentage. (#297) 2026-01-12 20:53:58 +11:00
WifiCredentialStore.cpp Add exFAT support (#150) 2025-12-30 16:09:30 +11:00
WifiCredentialStore.h Add connect to Wifi and File Manager Webserver (#41) 2025-12-20 01:05:43 +11:00