Support for integer vertical scale.

This commit is contained in:
sorgelig
2018-10-16 15:00:28 +08:00
parent b23bdbb8f3
commit 8ce862de1e
4 changed files with 16 additions and 1 deletions

View File

@@ -2750,6 +2750,18 @@ static uint32_t show_video_info(int force)
Info(str, cfg.video_info * 1000);
}
if (cfg.vscale_integer && height && (height <= vitems[5]))
{
uint32_t mag = vitems[5] / height;
height *= mag;
printf("Set Integer V scaling: %d\n", height);
spi_uio_cmd16(UIO_SETHEIGHT, height);
}
else
{
spi_uio_cmd16(UIO_SETHEIGHT, 0);
}
if (vtime && vtimeh) return vtime;
}
else