fbcon: Console Rotation - Add support to rotate font bitmap
Subsystems (2)
PATCH 3/8 fbcon: Console Rotation - Add support to rotate font bitmap
Add support to rotate the font bitmap. To save on processing time, the entire fontdata will be rotated on a console switch, then stored in a buffer private to fbcon. To further save on processing, the fontdata will only be rotated if the font has changed or if the angle of rotation has changed. Only a single copy of the rotated fontdata will be kept.
--- Makefile | 3 + fbcon.h | 4 ++ fbcon_rotate.c | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ fbcon_rotate.h | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 214 insertions(+)
drivers/video/console/Makefile +3 -0
@@ -31,6 +31,9 @@ obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbc ifeq ($(CONFIG_FB_TILEBLITTING),y) obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += tileblit.o endif +ifeq ($(CONFIG_FRAMEBUFFER_CONSOLE_ROTATION),y) +obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbcon_rotate.o +endif obj-$(CONFIG_FB_STI) += sticore.o font.o
drivers/video/console/fbcon.h +4 -0
@@ -215,7 +215,11 @@ static inline int get_attribute(struct f (void ) (&_r == &_v); \ (i == FB_ROTATE_UR || i == FB_ROTATE_UD) ? _r : _v; }) +#ifdef CONFIG_FRAMEBUFFER_CONSOLE_ROTATION +extern void fbcon_set_rotate (struct fbcon_ops *ops); +#else #define fbcon_set_rotate (x) do {} while(0) +#endif /* CONFIG_FRAMEBUFFER_CONSOLE_ROTATION */ #endif /* _VIDEO_FBCON_H */
drivers/video/console/fbcon_rotate.c new file +105 -0
105 lines not on this page · raw message
drivers/video/console/fbcon_rotate.h new file +102 -0
102 lines not on this page · raw message
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php