hgr2png: update generation of white and black colors

have slightly different colors for both so we can specify them
in png we want to convert
This commit is contained in:
Vince Weaver 2021-02-07 01:04:03 -05:00
parent 4b14ec0e8e
commit d6816b81ec

View File

@ -281,9 +281,9 @@ int main(int argc, char **argv) {
/* 4: black1 */
col=&palette[4];
col->red=0;
col->green=0;
col->blue=0;
col->red=1;
col->green=1;
col->blue=1;
/* 5: orange */
col=&palette[5];
@ -299,9 +299,9 @@ int main(int argc, char **argv) {
/* 7: white1 */
col=&palette[7];
col->red=0xff;
col->green=0xff;
col->blue=0xff;
col->red=0xfe;
col->green=0xfe;
col->blue=0xfe;
/* ... Set palette colors ... */
png_set_PLTE(png_ptr, info_ptr, palette, PAL_LENGTH);