Libretro: Fixed vertical overscan with blargg's NTSC filter
This commit is contained in:
parent
4fc1cb107b
commit
507cb32a44
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue