FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 04-06-2008, 11:43 PM
Matthew Garrett
 
Default Fix framebuffer fonts on non-x86 platforms

Console fonts are broken on all architectures that don't support VGA
framebuffers right now. Please apply this fixup.

Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>

diff --git a/drivers/char/vt_ioctl.c b/drivers/char/vt_ioctl.c
index 85f4f8a..316fefe 100644
--- a/drivers/char/vt_ioctl.c
+++ b/drivers/char/vt_ioctl.c
@@ -1179,10 +1179,8 @@ static void complete_change_console(struct vc_data *vc)
*/
old_vc_mode = oldvc->vc_mode;

- if (old_vc_mode == KD_TEXT &&
#if defined(CONFIG_VGA_CONSOLE)
- (oldvc->vc_sw == &vga_con) &&
-#endif
+ if (old_vc_mode == KD_TEXT && oldvc->vc_sw == &vga_con &&
oldvc->vc_sw->con_font_get) {
if (!oldvc->vc_font.data)
oldvc->vc_font.data = kmalloc(max_font_size,
@@ -1191,13 +1189,11 @@ static void complete_change_console(struct vc_data *vc)
oldvc->vc_sw->con_font_get(oldvc, &oldvc->vc_font);
unlock_kernel();
}
-
+#endif
switch_screen(vc);

- if (vc->vc_mode == KD_TEXT &&
#if defined(CONFIG_VGA_CONSOLE)
- (vc->vc_sw == &vga_con) &&
-#endif
+ if (vc->vc_mode == KD_TEXT && vc->vc_sw == &vga_con &&
vc->vc_sw->con_font_set) {
if (vc->vc_font.data) {
lock_kernel();
@@ -1205,7 +1201,7 @@ static void complete_change_console(struct vc_data *vc)
unlock_kernel();
}
}
-
+#endif
/*
* This can't appear below a successful kill_pid(). If it did,
* then the *blank_screen operation could occur while X, having

--
Matthew Garrett | mjg59@srcf.ucam.org

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 04-07-2008, 01:59 PM
Tim Gardner
 
Default Fix framebuffer fonts on non-x86 platforms

Matthew Garrett wrote:
> Console fonts are broken on all architectures that don't support VGA
> framebuffers right now. Please apply this fixup.
>
> Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>

Applied. This looks better then the fix I implemented.

--
Tim Gardner tim.gardner@ubuntu.com

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 09:02 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org