add some memcpy tweaks, not sure if it actually helps

This commit is contained in:
FunkyFr3sh 2018-11-29 01:39:03 +01:00
parent 6d337393ee
commit 093486ec7f
2 changed files with 10 additions and 4 deletions

View file

@ -351,7 +351,7 @@ DWORD WINAPI render_d3d9_main(void)
int i;
for (i = 0; i < ddraw->height; i++)
{
memcpy(dst, src, ddraw->width * ddraw->primary->lXPitch);
memcpy(dst, src, ddraw->primary->lPitch);
src += ddraw->primary->lPitch;
dst += lock_rc.Pitch;