Mercurial > hg > dmlib
comparison tools/lib64gfx.c @ 2312:cd266022e4a8
Use dmMemset().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 09 Jul 2019 10:43:20 +0300 |
parents | 48b48251610a |
children | 5abb81daadd5 |
comparison
equal
deleted
inserted
replaced
2311:d0608fbd85bc | 2312:cd266022e4a8 |
---|---|
244 static void dmC64SetupImageData(DMC64Image *img, const DMC64ImageFormat *fmt) | 244 static void dmC64SetupImageData(DMC64Image *img, const DMC64ImageFormat *fmt) |
245 { | 245 { |
246 img->fmt = fmt->format; | 246 img->fmt = fmt->format; |
247 img->nblocks = dmC64ImageGetNumBlocks(fmt); | 247 img->nblocks = dmC64ImageGetNumBlocks(fmt); |
248 | 248 |
249 memset(img->extraInfo, 0, sizeof(img->extraInfo)); | 249 dmMemset(img->extraInfo, 0, sizeof(img->extraInfo)); |
250 img->extraInfo[D64_EI_MODE] = fmt->format->mode; | 250 img->extraInfo[D64_EI_MODE] = fmt->format->mode; |
251 } | 251 } |
252 | 252 |
253 | 253 |
254 DMC64Image *dmC64ImageAlloc(const DMC64ImageFormat *fmt) | 254 DMC64Image *dmC64ImageAlloc(const DMC64ImageFormat *fmt) |