3618: Update missing file from #3600 update r=def- a=Jupeyy

It was probs added between the reverted updates redone in #3600 and the first tool update, so i missed it.

Also took the chance to make the tool safer, so this doesnt happen again

## Checklist

- [ ] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: Jupeyy <jupjopjap@gmail.com>
This commit is contained in:
bors[bot] 2021-02-13 16:13:39 +00:00 committed by GitHub
commit 1fb2ef2dfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 109 KiB

View file

@ -61,10 +61,13 @@ static void CopyColorValues(int w, int h, int BPP, unsigned char *pSrc, unsigned
for(int x = 0; x < w; x++, m += BPP)
{
for(int i = 0; i < BPP - 1; ++i)
{
if(pDest[m + 3] == 0)
pDest[m + i] = pSrc[m + i];
}
}
}
}
void DilateImage(unsigned char *pImageBuff, int w, int h, int BPP)
{