Mercurial > hg > dmlib
comparison tools/gfxconv.c @ 1290:e7dc9bb9777e
Rename struct DMImageSpec to DMImageConvSpec.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 18 Aug 2017 17:47:30 +0300 |
parents | 6c8b19d1d196 |
children | 2c4acbc3e7bf |
comparison
equal
deleted
inserted
replaced
1289:4b025a96ad46 | 1290:e7dc9bb9777e |
---|---|
138 optRemapRemove = FALSE; | 138 optRemapRemove = FALSE; |
139 int optNRemapTable = 0; | 139 int optNRemapTable = 0; |
140 DMMapValue optRemapTable[DM_MAX_COLORS]; | 140 DMMapValue optRemapTable[DM_MAX_COLORS]; |
141 int optColors[C64_MAX_COLORS]; | 141 int optColors[C64_MAX_COLORS]; |
142 | 142 |
143 DMImageSpec optSpec = | 143 DMImageConvSpec optSpec = |
144 { | 144 { |
145 .scaleX = 1, | 145 .scaleX = 1, |
146 .scaleY = 1, | 146 .scaleY = 1, |
147 .nplanes = 4, | 147 .nplanes = 4, |
148 .bpp = 8, | 148 .bpp = 8, |
1073 dmFree(buf); | 1073 dmFree(buf); |
1074 return res; | 1074 return res; |
1075 } | 1075 } |
1076 | 1076 |
1077 | 1077 |
1078 int dmWriteImage(const char *filename, DMImage *image, DMImageSpec *spec, int iformat, BOOL info) | 1078 int dmWriteImage(const char *filename, DMImage *image, DMImageConvSpec *spec, int iformat, BOOL info) |
1079 { | 1079 { |
1080 if (info) | 1080 if (info) |
1081 { | 1081 { |
1082 dmMsg(1, "Outputting %s image %d x %d -> %d x %d [%d x %d]\n", | 1082 dmMsg(1, "Outputting %s image %d x %d -> %d x %d [%d x %d]\n", |
1083 dmImageFormatList[iformat].fext, | 1083 dmImageFormatList[iformat].fext, |