Skip to contentSkip to conversation

macmodes.c in 2.3.99-pre3-pre8

BUG Martin Costabel 2 participants 2 messages Apr 1, 2000 – Apr 2, 2000

lore
Share & tools
lore
#0 lore raw

Starting from about a week ago, the 2.3.99 bitkeeper kernels screw up the colors in Xpmac, making it unusable (8-bit color, valkyriefb driver). XF_FBDev is working fine.

I tracked this down to what I think is a typo in the big code crossover from offb.c to macmodes.c. In any case, the following patch fixes the problem for me:

-- drivers/video/macmodes.c.ori Sat Mar 25 08:25:22 2000
+++ drivers/video/macmodes.c Sat Apr 1 22:08:08 2000
@@ -271,7 +271,7 @@

         n = n_entries - i;
         if (n > 16)
             n = 16;
-        palette_cmap.start = 1;
+        palette_cmap.start = i;
         palette_cmap.len = n;

         for (j = 0; j < n; j++) {

--
Martin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw

oops, thanks for spotting that. You're right, i missed that in the code migration.

thanks,

ani

Quoted 22 lines · Martin Costabel

Starting from about a week ago, the 2.3.99 bitkeeper kernels screw up the colors in Xpmac, making it unusable (8-bit color, valkyriefb driver). XF_FBDev is working fine.

I tracked this down to what I think is a typo in the big code crossover from offb.c to macmodes.c. In any case, the following patch fixes the problem for me:

-- drivers/video/macmodes.c.ori Sat Mar 25 08:25:22 2000
+++ drivers/video/macmodes.c Sat Apr 1 22:08:08 2000

(quoted diff) +1 -2
@@ -271,7 +271,7 @@
         n = n_entries - i;
         if (n > 16)
             n = 16;
-        palette_cmap.start = 1;
+        palette_cmap.start = i;
         palette_cmap.len = n;
 
         for (j = 0; j < n; j++) {
 
--
Quoted 3 lines

Martin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/