(dumpglyphs): After calling ccl_driver, set cp->byte1 to

zero for 1-byte font.
This commit is contained in:
Kenichi Handa 1998-07-19 05:17:35 +00:00
parent a01588fc82
commit 9dfb82d5cc

View file

@ -747,7 +747,7 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground, cmpcharp)
/* We assume that MSBs are appropriately
set/reset by CCL program. */
if (font->max_byte1 == 0) /* 1-byte font */
cp->byte2 = ccl->reg[1];
cp->byte1 = 0, cp->byte2 = ccl->reg[1];
else
cp->byte1 = ccl->reg[1], cp->byte2 = ccl->reg[2];
}
@ -760,7 +760,7 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground, cmpcharp)
/* We assume that MSBs are appropriately
set/reset by CCL program. */
if (font->max_byte1 == 0) /* 1-byte font */
cp->byte2 = ccl->reg[1];
cp->byte1 = 0, cp->byte2 = ccl->reg[1];
else
cp->byte1 = ccl->reg[1], cp->byte2 = ccl->reg[2];
}