OSD rotation option.

This commit is contained in:
sorgelig
2019-10-03 01:37:57 +08:00
parent 08c53f0b68
commit f52d81f7bc
6 changed files with 51 additions and 2 deletions

12
osd.cpp
View File

@@ -593,6 +593,18 @@ void InfoEnable(int x, int y, int width, int height)
DisableOsd();
}
void OsdRotation(uint8_t rotate)
{
if (is_minimig()) return;
spi_osd_cmd_cont(MM1_OSDCMDDISABLE);
spi_w(0);
spi_w(0);
spi_w(0);
spi_w(0);
spi_w(rotate);
DisableOsd();
}
// disable displaying of OSD
void OsdDisable(void)
{