Skip to content

Commit

Permalink
sexblitter: fix inverted characters 32+64
Browse files Browse the repository at this point in the history
while working on the octblitter (see #2669), i noticed that
the last character in the sex[] collection was inverted.
this would result in a swapped foreground/background
color when either the 32nd or 64th spot was hit.
we wanted U+1fb2e (🬮, BLOCK SEXTANT-156) but were
supplying U+1fb0d (🬍, BLOCK SEXTANT-234).
  • Loading branch information
dankamongmen committed Dec 28, 2024
1 parent 1f4e4b9 commit feeb4e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/blit.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ sex_solver(const uint32_t rgbas[6], uint64_t* channels, unsigned blendcolors,
" ", "🬀", "🬁", "🬃", "🬇", "🬏", "🬞", "🬂", // 0..7
"🬄", "🬈", "🬐", "🬟", "🬅", "🬉", "🬑", "🬠", // 8..15
"🬋", "🬓", "🬢", "🬖", "🬦", "🬭", "🬆", "🬊", // 16..23
"🬒", "🬡", "🬌", "▌", "🬣", "🬗", "🬧", "🬍", // 24..31
"🬒", "🬡", "🬌", "▌", "🬣", "🬗", "🬧", "🬮", // 24..31
};
static const unsigned partitions[32] = {
0, // 1 way to arrange 0
Expand Down

0 comments on commit feeb4e8

Please sign in to comment.