Fixed SRCCOPY, using memmove now.
memcpy is not defined, if source and destination overlap.
This commit is contained in:
parent
e2dbe5ee2d
commit
123cd523e0
@ -160,7 +160,7 @@ static BOOL BitBlt_SRCCOPY_16bpp(HGDI_DC hdcDest, int nXDest, int nYDest, int nW
|
||||
dstp = gdi_get_bitmap_pointer(hdcDest, nXDest, nYDest + y);
|
||||
|
||||
if (srcp != 0 && dstp != 0)
|
||||
memcpy(dstp, srcp, nWidth * hdcDest->bytesPerPixel);
|
||||
memmove(dstp, srcp, nWidth * hdcDest->bytesPerPixel);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
@ -105,7 +105,7 @@ static BOOL BitBlt_SRCCOPY_8bpp(HGDI_DC hdcDest, int nXDest, int nYDest, int nWi
|
||||
dstp = gdi_get_bitmap_pointer(hdcDest, nXDest, nYDest + y);
|
||||
|
||||
if (srcp != 0 && dstp != 0)
|
||||
memcpy(dstp, srcp, nWidth * hdcDest->bytesPerPixel);
|
||||
memmove(dstp, srcp, nWidth * hdcDest->bytesPerPixel);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user