Libretro: Fixed vertical overscan with blargg's NTSC filter

This commit is contained in:
Sour 2018-01-12 17:36:24 -05:00
parent 4fc1cb107b
commit 507cb32a44

View file

@ -90,7 +90,8 @@ void NtscFilter::GenerateArgbFrame(uint32_t *ntscBuffer)
int rowWidthOverscan = rowWidth - overscanLeft - overscanRight; int rowWidthOverscan = rowWidth - overscanLeft - overscanRight;
if(_keepVerticalRes) { if(_keepVerticalRes) {
for(uint32_t y = overscan.Top; y < PPU::ScreenHeight - overscan.Bottom; y++) { ntscBuffer += rowWidth * overscan.Top;
for(uint32_t i = 0, len = overscan.GetScreenHeight(); i < len; i++) {
memcpy(outputBuffer, ntscBuffer, rowWidthOverscan * sizeof(uint32_t)); memcpy(outputBuffer, ntscBuffer, rowWidthOverscan * sizeof(uint32_t));
outputBuffer += rowWidthOverscan; outputBuffer += rowWidthOverscan;
ntscBuffer += rowWidth; ntscBuffer += rowWidth;