From d6816b81ec5cf45e84a4da54d8da2560d9682f8b Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Sun, 7 Feb 2021 01:04:03 -0500 Subject: [PATCH] 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 --- utils/hgr-utils/hgr2png.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/utils/hgr-utils/hgr2png.c b/utils/hgr-utils/hgr2png.c index 5e90fb59..899542b9 100644 --- a/utils/hgr-utils/hgr2png.c +++ b/utils/hgr-utils/hgr2png.c @@ -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);