diff options
| author | Thomas Zimmermann <tzimmermann@suse.de> | 2026-04-07 11:23:17 +0200 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2026-04-07 17:38:07 +0200 |
| commit | 6ad4ed8408157b1c78f69995c5808d9460fba58d (patch) | |
| tree | 7a875163c91a1505f4f419d0c0399067214ffd7c /rust/kernel/iommu/git@git.tavy.me:linux.git | |
| parent | bdfd943231347ce57133d1ba2d93ed87f1050e81 (diff) | |
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 'rust/kernel/iommu/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
