We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
上面代码中的
for(int wIndex = 0; wIndex < m_uPixelsWide; wIndex++, dst+=4)
应改为
for(int wIndex = 0; wIndex < copyWidth; wIndex++, dst+=4)
The text was updated successfully, but these errors were encountered: