mirror of
https://bjh21.me.uk/bedstead/.git
synced 2026-07-09 21:43:06 -04:00
In do_palt(), mask out unused data bits.
This avoids an infinite loop if one of them is inadvertently (or advertently) set. Why might one be set advertently? Well, it would allow us to replace our long lists of numbers with short strings. For instance, the U+0024 DOLLAR SIGN glyph is "NUTNEUN". Sadly that would make the program incompatible with non-ASCII systems and since I claim ANSI C I should probably continue to support those.
This commit is contained in:
parent
ce68065faa
commit
7ba21188c8
@ -1491,7 +1491,7 @@ dopalt(struct glyph const *g)
|
||||
* characters get an advance width of three pixels.
|
||||
*/
|
||||
for (i = 0; i < YSIZE; i++)
|
||||
cols |= g->data[i];
|
||||
cols |= g->data[i] & ((1 << XSIZE) - 1);
|
||||
if (cols == 0)
|
||||
dh = 3 - XSIZE;
|
||||
else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user