Resent-Date: Sun, 2 May 1999 14:31:10 +0200 (MET DST)
X-Sender: ddkilzer@mail.earthlink.net
In-Reply-To: <372BC184.4DFBBA85@lbl.gov>
References: <Pine.GSO.4.10.9904272302500.23705-100000@miris.lcs.mit.edu>
 <v03130330b3516856b8f5@[192.168.1.1]>
X-Files: Sundays at 8 PM CST on Fox!
Date: Sun, 2 May 1999 07:30:33 -0500
To: Michael Schmitz <MSchmitz@lbl.gov>
From: "David D. Kilzer" <ddkilzer@computer.org>
Subject: Mac fbcon fix (was Re: [patch] irq updates)
Cc: linux-mac68k@baltimore.wwaves.com,
        Linux-m68k List <linux-m68k@lists.linux-m68k.org>,
        Geert Uytterhoeven <Geert.Uytterhoeven@cs.kuleuven.ac.be>
Resent-From: linux-m68k@phil.uni-sb.de

On  Sat, 01 May 1999, Michael Schmitz <MSchmitz@lbl.gov> wrote:

>One more sort-of-patch from me: it seems screen blanking with the Penguin
>colors works nicely now, so please remove this section in CONFIG_MAC
>conditionals inside fbcon.c:fbcon_blank():
>
>        if (blank) {
>-#ifdef CONFIG_MAC
>-            if (MACH_IS_MAC) {
>-                if (p->screen_base)
>-                    mymemset(p->screen_base,
>-                             p->var.xres_virtual*p->var.yres_virtual*
>-                             p->var.bits_per_pixel>>3);
>-            } else
>-#endif
>            if (p->visual == FB_VISUAL_MONO01) {

Below is an actual patch against 2.2.6.

Dave


diff -u linux-2.2.6/drivers/video/fbcon.c.orig linux-2.2.6/drivers/video/fbcon.c
--- linux-2.2.6/drivers/video/fbcon.c.orig	Mon Mar 29 03:39:32 1999
+++ linux-2.2.6/drivers/video/fbcon.c	Sun May  2 07:24:26 1999
@@ -1383,14 +1383,6 @@
 
     if (!p->can_soft_blank) {
 	if (blank) {
-#ifdef CONFIG_MAC
-	    if (MACH_IS_MAC) {
-		if (p->screen_base)
-		    mymemset(p->screen_base,
-			     p->var.xres_virtual*p->var.yres_virtual*
-			     p->var.bits_per_pixel>>3);
-	    } else
-#endif
 	    if (p->visual == FB_VISUAL_MONO01) {
 		if (p->screen_base)
 		    mymemset(p->screen_base,


