[PATCH] fbdev fixes for mulithead

From: James A Simmons (jsimmons@acsu.buffalo.edu)
Date: Thu Jan 06 2000 - 21:29:48 EST


  This patch fixes some problems fbcon had with multihead.

Codito, ergo sum - "I code, therefore I am"
James Simmons (o_
fbdev/gfx developer (o_ (o_ //\
http://www.linux-fbdev.org (/)_ (/)_ V_/_
http://linuxgfx.sourceforge.net

--- linux-2.3.37/drivers/video/fbcon.c Wed Dec 15 15:28:32 1999
+++ linux/drivers/video/fbcon.c Thu Jan 6 21:13:41 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--;

-
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/



This archive was generated by hypermail 2b29 : Fri Jan 07 2000 - 21:00:07 EST