refactor: Revert letterbox fill to Dithered/Solid/None with edge caching
Simplify letterbox fill modes back to Dithered (default), Solid, and None. Remove the Extend Edges mode and all per-pixel edge replication code. Restore Bayer ordered dithering for the Dithered fill mode. Re-introduce edge average caching so cover edge computations persist across sleep cycles, stored as a small binary file alongside the cover BMP. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -32,13 +32,11 @@ class CrossPointSettings {
|
||||
SLEEP_SCREEN_COVER_FILTER_COUNT
|
||||
};
|
||||
enum SLEEP_SCREEN_LETTERBOX_FILL {
|
||||
LETTERBOX_NONE = 0,
|
||||
LETTERBOX_DITHERED = 0,
|
||||
LETTERBOX_SOLID = 1,
|
||||
LETTERBOX_BLENDED = 2,
|
||||
LETTERBOX_GRADIENT = 3,
|
||||
LETTERBOX_NONE = 2,
|
||||
SLEEP_SCREEN_LETTERBOX_FILL_COUNT
|
||||
};
|
||||
enum SLEEP_SCREEN_GRADIENT_DIR { GRADIENT_TO_WHITE = 0, GRADIENT_TO_BLACK = 1, SLEEP_SCREEN_GRADIENT_DIR_COUNT };
|
||||
|
||||
// Status bar display type enum
|
||||
enum STATUS_BAR_MODE {
|
||||
@@ -133,10 +131,8 @@ class CrossPointSettings {
|
||||
uint8_t sleepScreenCoverMode = FIT;
|
||||
// Sleep screen cover filter
|
||||
uint8_t sleepScreenCoverFilter = NO_FILTER;
|
||||
// Sleep screen letterbox fill mode (None / Solid / Blended / Gradient)
|
||||
uint8_t sleepScreenLetterboxFill = LETTERBOX_GRADIENT;
|
||||
// Sleep screen gradient direction (towards white or black)
|
||||
uint8_t sleepScreenGradientDir = GRADIENT_TO_WHITE;
|
||||
// Sleep screen letterbox fill mode (Dithered / Solid / None)
|
||||
uint8_t sleepScreenLetterboxFill = LETTERBOX_DITHERED;
|
||||
// Status bar settings
|
||||
uint8_t statusBar = FULL;
|
||||
// Text rendering settings
|
||||
|
||||
Reference in New Issue
Block a user