Display OSD notification on VGA output when FB is active.

This commit is contained in:
sorgelig
2019-06-10 22:16:29 +08:00
parent 1be6234869
commit 5552d916ab
3 changed files with 52 additions and 4 deletions

View File

@@ -1013,10 +1013,39 @@ void HandleUI(void)
case MENU_NONE1:
helptext = helptexts[HELPTEXT_NONE];
menumask = 0;
OsdDisable();
menustate = MENU_NONE2;
OsdSetSize(8);
firstmenu = 0;
if (video_fb_state())
{
EnableOsd_on(OSD_VGA);
OsdSetSize(16);
OsdSetTitle("Information");
int n = 0;
OsdWrite(n++);
OsdWrite(n++);
OsdWrite(n++);
OsdWrite(n++);
OsdWrite(n++, " If you see this, then you");
OsdWrite(n++, " need to modify MiSTer.ini");
OsdWrite(n++);
OsdWrite(n++, " Either disable framebuffer:");
OsdWrite(n++, " fb_terminal=0");
OsdWrite(n++);
OsdWrite(n++, " or enable scaler on VGA:");
OsdWrite(n++, " vga_scaler=1");
for (; n < OsdGetSize(); n++) OsdWrite(n);
OsdEnable(0);
EnableOsd_on(OSD_HDMI);
OsdDisable();
EnableOsd_on(OSD_ALL);
}
else
{
OsdDisable();
}
OsdSetSize(8);
break;
case MENU_INFO: