fix(ImmichElias): black screen fix, 240x180 request for PSRAM memory safety, fullscreen bg widget 480x320, bottom-only UI, tap toggle, cache random pagination
This commit is contained in:
@@ -471,16 +471,13 @@ static void detect_display_size(AppCtx* ctx, lv_obj_t* parent) {
|
|||||||
if (dw2>0 && dh2>0) { w=dw2; h=dh2; }
|
if (dw2>0 && dh2>0) { w=dw2; h=dh2; }
|
||||||
}
|
}
|
||||||
ctx->disp_w=w; ctx->disp_h=h;
|
ctx->disp_w=w; ctx->disp_h=h;
|
||||||
// True fullscreen background: use full display resolution for image request
|
// Black screen fix: request small image to avoid OOM and internal low memory 8723 bytes
|
||||||
// Like BookPlayer, image should cover entire screen, UI overlays on top
|
// 320x240 decoded ~300KB, 240x180 ~172KB, 480x320 ~600KB (too large, causes black screen)
|
||||||
int target_w = w;
|
// Use 240x180 for stability, widget still fills display for fullscreen bg effect
|
||||||
int target_h = h;
|
int target_w = 240;
|
||||||
if (target_w>480) target_w=480;
|
int target_h = 180;
|
||||||
if (target_h>320) target_h=320;
|
|
||||||
if (target_w<120) target_w=FALLBACK_W;
|
|
||||||
if (target_h<120) target_h=FALLBACK_H;
|
|
||||||
ctx->img_w=target_w; ctx->img_h=target_h;
|
ctx->img_w=target_w; ctx->img_h=target_h;
|
||||||
ESP_LOGI(TAG, "Display detected %dx%d -> img target %dx%d FULLSCREEN bg", w,h,target_w,target_h);
|
ESP_LOGI(TAG, "Display detected %dx%d -> img request %dx%d (widget %dx%d fullscreen) BLACK SCREEN FIX", w,h,target_w,target_h,w,h);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hide_chrome(AppCtx* ctx) {
|
static void hide_chrome(AppCtx* ctx) {
|
||||||
|
|||||||
Reference in New Issue
Block a user