Skip to content

Commit 518d8c5

Browse files
committed
Merge remote-tracking branch 'upstream/master' into stable
2 parents a386a8f + f013047 commit 518d8c5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

video.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,6 +1687,13 @@ static uint8_t last_sync_invert = 0xff;
16871687
static uint8_t last_pr_flags = 0xff;
16881688
static uint8_t last_vic_mode = 0xff;
16891689

1690+
static void hdmi_invalidate_mode_cache()
1691+
{
1692+
last_sync_invert = 0xff;
1693+
last_pr_flags = 0xff;
1694+
last_vic_mode = 0xff;
1695+
}
1696+
16901697
static void hdmi_config_set_mode(vmode_custom_t *vm)
16911698
{
16921699
PROFILE_FUNCTION();
@@ -2731,6 +2738,8 @@ void video_reinit()
27312738
printf("*** Video re-initialization.\n");
27322739

27332740
hdmi_config_init();
2741+
// re-init resets 0x17/0x3B/0x3C - re-apply, or video stays black if any of them changed
2742+
hdmi_invalidate_mode_cache();
27342743
hdmi_config_set_hdr();
27352744

27362745
support_FHD = 0;

0 commit comments

Comments
 (0)