chiark / gitweb /
Use 4-cell mosaic graphics to render block, lfblock, and rtblock
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 28 Mar 2020 16:19:54 +0000 (16:19 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 28 Mar 2020 16:19:54 +0000 (16:19 +0000)
The results are the same, but since their Unicode code points are with
the other 4-cell characters, the source code it more intelligible.

bedstead.c

index a13b199122ae2b4e281518a19176dbf23054f6e0..2223951a687700cef343435c65703e61a41185c4 100644 (file)
@@ -1418,9 +1418,9 @@ static struct glyph {
  {{012,012,012,033,000,033,012,012,012}, 0x256c, "SF440000" },
 
  /* Block elements */
- {{ 3},   0x2580, "upblock", MOS4 }, {{12},   0x2584, "dnblock", MOS4 },
- {{0x5f}, 0x2588, "block",   MOS },
- {{0x15}, 0x258c, "lfblock", MOS }, {{0x4a}, 0x2590, "rtblock", MOS },
+ {{ 3}, 0x2580, "upblock", MOS4 }, {{12}, 0x2584, "dnblock", MOS4 },
+ {{15}, 0x2588, "block",   MOS4 },
+ {{ 5}, 0x258c, "lfblock", MOS4 }, {{10}, 0x2590, "rtblock", MOS4 },
  {{025,000,012,000,025,000,012,000,025}, 0x2591, "ltshade" },
  {{022,011,004,022,011,004,022,011,004}, 0x2592, "shade" },
  {{025,037,012,037,025,037,012,037,025}, 0x2593, "dkshade" },