sexblitter: swap fg/bg post-lerp

pull/1087/head
nick black 4 years ago
parent f9b4993b07
commit 7ddfaa79a7
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -552,9 +552,9 @@ get_sex_colors(uint32_t* fg, uint32_t* bg, unsigned mindiffbits,
}
}
assert(2 == i);
*fg = lerp(fgcs[0], fgcs[1]);
*bg = 0;
channel_set_rgb8(bg, r / div, g / div, b / div);
*bg = lerp(fgcs[0], fgcs[1]);
*fg = 0;
channel_set_rgb8(fg, r / div, g / div, b / div);
//fprintf(stderr, "fg: 0x%08x bg: 0x%08x r: %u g: %u b: %u div: %u\n", *fg, *bg, r, g, b, div);
}

Loading…
Cancel
Save