Messages in this thread Patch in this message | | | Date | Fri, 7 Jan 2000 20:45:33 +0100 (CET) | From | Geert Uytterhoeven <> | Subject | Re: [PATCH] fbdev fixes for mulithead |
| |
On Fri, 7 Jan 2000, Linus Torvalds wrote: > On Thu, 6 Jan 2000, James A Simmons wrote: > > This patch fixes some problems fbcon had with multihead. > > Your mailer corrupts white-space, and breaks long lines. > > Not applied.
A corrected version is below. Thanks for applying it!
--- native-2.3.38-pre1/drivers/video/fbcon.c Wed Dec 15 20:27:25 1999 +++ geert-2.3.38-pre1/drivers/video/fbcon.c Fri Jan 7 20:42:47 2000 @@ -311,6 +311,10 @@ fb_display[unit]._fontheightlog = fontheightlog; fb_display[unit].userfont = userfont; fb_display[unit].fb_info = newfb; + if (conp) + conp->vc_display_fg = &newfb->display_fg; + if (!newfb->display_fg) + newfb->display_fg = conp; if (!newfb->changevar) newfb->changevar = oldfb->changevar; /* tell console var has changed */ @@ -1167,8 +1171,12 @@ static inline void fbcon_softback_note(struct vc_data *conp, int t, int count) { - unsigned short *p = (unsigned short *) - (conp->vc_origin + t * conp->vc_size_row); + unsigned short *p; + + if (conp->vc_num != fg_console) + return; + p = (unsigned short *)(conp->vc_origin + t * conp->vc_size_row); + while (count) { scr_memcpyw((u16 *)softback_in, p, conp->vc_size_row); count--; Gr{oetje,eeting}s, -- Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |