mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-16 10:20:50 +00:00
Fix invalid memory access in ErrorDiffusionDither
This commit is contained in:
parent
20b8ee0e57
commit
c2af88343e
@ -29,10 +29,8 @@ void ErrorDiffusionDither::start(
|
||||
{
|
||||
m_srcImage = srcImage;
|
||||
m_width = 2+srcImage->width();
|
||||
for (int i=0; i<kChannels; ++i) {
|
||||
m_err[i].resize(m_width*2);
|
||||
m_err[i].clear();
|
||||
}
|
||||
for (int i=0; i<kChannels; ++i)
|
||||
m_err[i].resize(m_width*2, 0);
|
||||
m_lastY = -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user