NTSC Filter: Fixed blank screenshots when vertical blending is turned off

This commit is contained in:
Sour 2018-08-02 22:45:00 -04:00
parent 115f46e05f
commit acebd1a817

View file

@ -141,8 +141,10 @@ void NtscFilter::GenerateArgbFrame(uint32_t *ntscBuffer)
out++;
}
} else {
memcpy(out, in + overscanLeft, rowWidthOverscan * sizeof(uint32_t));
memcpy(out + rowWidthOverscan, in + overscanLeft, rowWidthOverscan * sizeof(uint32_t));
for(int i = 0; i < rowWidthOverscan; i++) {
out[i] = 0xFF000000 | in[overscanLeft+i];
}
memcpy(out + rowWidthOverscan, out, rowWidthOverscan * sizeof(uint32_t));
}
}
}