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.

Avoid ghosting on sleep screen by doing a full screen update

+4 -3
+1 -1
lib/EpdRenderer/EpdRenderer.cpp
··· 118 118 display->fillScreen(black ? GxEPD_BLACK : GxEPD_WHITE); 119 119 } 120 120 121 - void EpdRenderer::flushDisplay() const { display->display(true); } 121 + void EpdRenderer::flushDisplay(const bool partialUpdate) const { display->display(partialUpdate); } 122 122 123 123 void EpdRenderer::flushArea(int x, int y, int width, int height) const { 124 124 // TODO: Fix
+1 -1
lib/EpdRenderer/EpdRenderer.h
··· 33 33 void drawRect(int x, int y, int width, int height, uint16_t color) const; 34 34 void fillRect(int x, int y, int width, int height, uint16_t color) const; 35 35 void clearScreen(bool black = false) const; 36 - void flushDisplay() const; 36 + void flushDisplay(bool partialUpdate = true) const; 37 37 void flushArea(int x, int y, int width, int height) const; 38 38 39 39 int getPageWidth() const;
+2 -1
src/screens/FullScreenMessageScreen.cpp
··· 10 10 11 11 renderer->clearScreen(invert); 12 12 renderer->drawText(left, top, text.c_str(), bold, italic, invert ? 0 : 1); 13 - renderer->flushDisplay(); 13 + // If inverted, do a full screen update to ensure no ghosting 14 + renderer->flushDisplay(!invert); 14 15 }