We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a386a8f + f013047 commit 518d8c5Copy full SHA for 518d8c5
1 file changed
video.cpp
@@ -1687,6 +1687,13 @@ static uint8_t last_sync_invert = 0xff;
1687
static uint8_t last_pr_flags = 0xff;
1688
static uint8_t last_vic_mode = 0xff;
1689
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
+
1697
static void hdmi_config_set_mode(vmode_custom_t *vm)
1698
{
1699
PROFILE_FUNCTION();
@@ -2731,6 +2738,8 @@ void video_reinit()
2731
2738
printf("*** Video re-initialization.\n");
2732
2739
2733
2740
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();
2734
2743
hdmi_config_set_hdr();
2735
2744
2736
2745
support_FHD = 0;
0 commit comments