patch-2.4.0-test6 linux/drivers/video/sgivwfb.c
Next file: linux/drivers/video/valkyriefb.c
Previous file: linux/drivers/video/sa1100fb.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Sun Aug 6 11:25:46 2000
- Orig file:
v2.4.0-test5/linux/drivers/video/sgivwfb.c
- Orig date:
Thu Jul 27 17:38:01 2000
diff -u --recursive --new-file v2.4.0-test5/linux/drivers/video/sgivwfb.c linux/drivers/video/sgivwfb.c
@@ -823,8 +823,8 @@
int err;
if (!fb_display[con].cmap.len) { /* no colormap allocated? */
- if ((err = fb_alloc_cmap(&fb_display[con].cmap,
- 1<<fb_display[con].var.bits_per_pixel, 0)))
+ int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256;
+ if ((err = fb_alloc_cmap(&fb_display[con].cmap, size, 0)))
return err;
}
if (con == currcon) /* current console? */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)