do this "properly"

This commit is contained in:
CasualPokePlayer 2022-01-26 16:42:34 -08:00
parent 509096f41c
commit 81464d72f4
8 changed files with 5 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -183,10 +183,14 @@ ECL_EXPORT void FrameAdvance(MyFrameInfo& frame)
for (int line = lineStart; line < lineEnd; line++)
{
auto lw = EES->InterlaceOn ? EES->LineWidths[line] : w;
auto lw = multiWidth ? EES->LineWidths[line] : w;
if (MDFN_LIKELY(lw > 0))
{
memcpy(dst, src, lw * sizeof(uint32_t));
if (!EES->InterlaceOn && lw < w)
{
memset(dst + lw, 0, (w - lw) * sizeof(uint32_t));
}
src += srcp;
dst += dstp;
}