]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fbcon: Fill cursor mask in helper function
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 7 Apr 2026 09:23:20 +0000 (11:23 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 7 Apr 2026 15:38:07 +0000 (17:38 +0200)
commit6903bd692057f1daee5a4860f13fe97a9906489a
tree3272a75b227935138cf5c343bb2c43f8e56144f3
parentcfa72955a029cd79433694cac6b5630788609cd4
fbcon: Fill cursor mask in helper function

Fbcon creates a cursor shape on the fly from the user-configured
settings. The logic to create a glyph with the cursor's bitmap mask
is duplicated in four places. In the cases that involve console
rotation, the implementation further rotates the cursor glyph for
displaying.

Consolidate all cursor-mask creation in a single helper. Update the
callers accordingly. For console rotation, use the glyph helpers to
rotate the created cursor glyph to the correct orientation.

v2:
- fix sparse truncated-bits warning

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/core/bitblit.c
drivers/video/fbdev/core/fbcon.c
drivers/video/fbdev/core/fbcon.h
drivers/video/fbdev/core/fbcon_ccw.c
drivers/video/fbdev/core/fbcon_cw.c
drivers/video/fbdev/core/fbcon_ud.c