-
Notifications
You must be signed in to change notification settings - Fork 413
Open
Description
GifWord copyWidth = prev->ImageDesc.Width;
if (prev->ImageDesc.Left + copyWidth > m_uPixelsWide)
{
copyWidth = m_uPixelsWide - prev->ImageDesc.Left;
}
GifWord copyHeight = prev->ImageDesc.Height;
if (prev->ImageDesc.Top + copyHeight > m_uPixelsHigh)
{
copyHeight = m_uPixelsHigh - prev->ImageDesc.Top;
}
for (; copyHeight > 0; copyHeight--)
{
for(int wIndex = 0; wIndex < m_uPixelsWide; wIndex++, dst+=4)
{
*dst = paintingColor.r;
*(dst+1) = paintingColor.g;
*(dst+2) = paintingColor.b;
*(dst+3) = paintingColor.a;
}
}
上面代码中的
for(int wIndex = 0; wIndex < m_uPixelsWide; wIndex++, dst+=4)
应改为
for(int wIndex = 0; wIndex < copyWidth; wIndex++, dst+=4)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels