A fork of https://github.com/crosspoint-reader/crosspoint-reader
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: Overlapping battery percentage on image pages with anti-aliasing (#1452)

## Summary

**What is the goal of this PR?**

When viewing a page with images and anti-aliasing enabled, the
`imagePageWithAA` path renders the page twice with fast refreshes (blank
image area, then restore). Both passes called `renderStatusBar()`, which
reads the battery percentage live. If the value changed between the two
renders (e.g. 88% -> 87%), the digits would overlap on screen.
Fix: Removed the redundant `renderStatusBar()` from the second BW
render. The status bar is already drawn and displayed in the first pass,
and only the image area needs restoration.

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**NO**_

authored by

Zach Nelson and committed by
GitHub
0cbfaa00 ceb6acc8

+1 -1
+1 -1
src/activities/reader/EpubReaderActivity.cpp
··· 732 732 renderer.displayBuffer(HalDisplay::FAST_REFRESH); 733 733 734 734 // Re-render page content to restore images into the blanked area 735 + // Status bar is not re-rendered here to avoid reading stale dynamic values (e.g. battery %) 735 736 page->render(renderer, SETTINGS.getReaderFontId(), orientedMarginLeft, orientedMarginTop); 736 - renderStatusBar(); 737 737 renderer.displayBuffer(HalDisplay::FAST_REFRESH); 738 738 } else { 739 739 renderer.displayBuffer(HalDisplay::HALF_REFRESH);