aboutsummaryrefslogtreecommitdiffstats
path: root/libparsepcf_get_bitmaps.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2024-10-13 14:52:39 +0200
committerMattias Andrée <m@maandree.se>2024-10-13 14:52:39 +0200
commit3de183860fb65773c39bad2039398064679227f2 (patch)
tree29dbb38c338695a711951d5b627484c6a3a3e627 /libparsepcf_get_bitmaps.c
parentDocumentation and minor improvements (diff)
downloadlibparsepcf-3de183860fb65773c39bad2039398064679227f2.tar.gz
libparsepcf-3de183860fb65773c39bad2039398064679227f2.tar.bz2
libparsepcf-3de183860fb65773c39bad2039398064679227f2.tar.xz
Documentation + rename struct fields (some had confusing name, and others had plain wrong names due to bad documentation it was bsaed on)
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--libparsepcf_get_bitmaps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libparsepcf_get_bitmaps.c b/libparsepcf_get_bitmaps.c
index cad51f3..8265db3 100644
--- a/libparsepcf_get_bitmaps.c
+++ b/libparsepcf_get_bitmaps.c
@@ -39,8 +39,8 @@ libparsepcf_get_bitmaps(const void *file, size_t size,
meta->bit_packing = (size_t)1 << ((table->format & LIBPARSEPCF_SCAN_UNIT_MASK) >> 4);
meta->row_padding = (size_t)1 << ((table->format & LIBPARSEPCF_GLYPH_PAD_MASK) >> 0);
- meta->lsbyte = !!(table->format & LIBPARSEPCF_BYTE);
- meta->lsbit = !!(table->format & LIBPARSEPCF_BIT);
+ meta->msbyte_first = !!(table->format & LIBPARSEPCF_BYTE);
+ meta->msbit_first = !!(table->format & LIBPARSEPCF_BIT);
if (meta->row_padding < meta->bit_packing)
goto ebfont;