summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2026-04-07 12:23:17 +0300
committerHelge Deller <deller@gmx.de>2026-04-07 18:38:07 +0300
commit6ad4ed8408157b1c78f69995c5808d9460fba58d (patch)
tree7a875163c91a1505f4f419d0c0399067214ffd7c /include/linux
parentbdfd943231347ce57133d1ba2d93ed87f1050e81 (diff)
downloadlinux-6ad4ed8408157b1c78f69995c5808d9460fba58d.tar.xz
lib/fonts: Refactor glyph-pattern helpers
Change the signatures of the pattern helpers to align them with other font-glyph helpers: use the font_glyph_ prefix and pass the glyph buffer first. Calculating the position of the involved bit is somewhat obfuscated in the original implementation. Move it into the new helper __font_glyph_pos() and use the result as array index and bit position. Note that these bit helpers use a bit pitch, while other code uses a byte pitch. This is intentional and required here. v2: - fix typos in commit message Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions