summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2026-04-07 11:23:16 +0200
committerHelge Deller <deller@gmx.de>2026-04-07 17:38:07 +0200
commitbdfd943231347ce57133d1ba2d93ed87f1050e81 (patch)
tree117edb4f5dbef97b46a9714f685f855abf43a0f8 /rust/kernel
parentde0b375bce6df8be2123d15a026dc74ba54e5b2c (diff)
lib/fonts: Implement glyph rotation
Move the glyph rotation helpers from fbcon to the font library. Wrap them behind clean interfaces. Also clear the output memory to zero. Previously, the implementation relied on the caller to do that. Go through the fbcon code and callers of the glyph-rotation helpers. In addition to the font rotation, there's also the cursor code, which uses the rotation helpers. The font-rotation relied on a single memset to zero for the whole font. This is now multiple memsets on each glyph. This will be sorted out when the font library also implements font rotation. Building glyph rotation in the font library still depends on CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y. If we get more users of the code, we can still add a dedicated Kconfig symbol to the font library. No changes have been made to the actual implementation of the rotate_*() and pattern_*() functions. These will be refactored as separate changes. v2: - fix typos Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions