[PATCH] ATI Mach64 Framebuffer bug

From: root (yuri@PhysTechSoft.com)
Date: Sat May 27 2000 - 10:15:49 EST


This one-line patch fixes incorrect palette setting after vt-switch.

                                                 Yuri

diff -ur linux-2.4.0-test1/drivers/video/atyfb.c linux/drivers/video/atyfb.c
--- linux-2.4.0-test1/drivers/video/atyfb.c Tue Apr 11 10:00:08 2000
+++ linux/drivers/video/atyfb.c Sat May 27 17:46:43 2000
@@ -2931,7 +2931,7 @@
         if ((err = fb_alloc_cmap(&disp->cmap, size, 0)))
             return err;
     }
- if (!info->display_fg || con == info->display_fg->vc_num) /* current console? */
+ if (con == currcon) /* current console? */
         return fb_set_cmap(cmap, kspc, atyfb_setcolreg, info);
     else
         fb_copy_cmap(cmap, &disp->cmap, kspc ? 0 : 1);

-
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 : Wed May 31 2000 - 21:00:17 EST