patch-2.4.7 linux/drivers/video/tdfxfb.c
Next file: linux/drivers/video/tgafb.c
Previous file: linux/drivers/video/riva/fbdev.c
Back to the patch index
Back to the overall index
- Lines: 59
- Date:
Wed Jul 4 11:50:39 2001
- Orig file:
v2.4.6/linux/drivers/video/tdfxfb.c
- Orig date:
Wed Apr 18 11:49:12 2001
diff -u --recursive --new-file v2.4.6/linux/drivers/video/tdfxfb.c linux/drivers/video/tdfxfb.c
@@ -1207,7 +1207,7 @@
revc: tdfx_cfbX_revc,
cursor: tdfx_cfbX_cursor,
clear_margins: tdfx_cfbX_clear_margins,
- fontwidthmask: FONTWIDTH(8)
+ fontwidthmask: FONTWIDTHRANGE(8, 12)
};
#endif
#ifdef FBCON_HAS_CFB16
@@ -1220,7 +1220,7 @@
revc: tdfx_cfbX_revc,
cursor: tdfx_cfbX_cursor,
clear_margins: tdfx_cfbX_clear_margins,
- fontwidthmask: FONTWIDTH(8)
+ fontwidthmask: FONTWIDTHRANGE(8, 12)
};
#endif
#ifdef FBCON_HAS_CFB24
@@ -1233,7 +1233,7 @@
revc: tdfx_cfbX_revc,
cursor: tdfx_cfbX_cursor,
clear_margins: tdfx_cfbX_clear_margins,
- fontwidthmask: FONTWIDTH(8)
+ fontwidthmask: FONTWIDTHRANGE(8, 12)
};
#endif
#ifdef FBCON_HAS_CFB32
@@ -1246,7 +1246,7 @@
revc: tdfx_cfbX_revc,
cursor: tdfx_cfbX_cursor,
clear_margins: tdfx_cfbX_clear_margins,
- fontwidthmask: FONTWIDTH(8)
+ fontwidthmask: FONTWIDTHRANGE(8, 12)
};
#endif
@@ -1892,7 +1892,7 @@
((pdev->device == PCI_DEVICE_ID_3DFX_BANSHEE) ||
(pdev->device == PCI_DEVICE_ID_3DFX_VOODOO3) ||
(pdev->device == PCI_DEVICE_ID_3DFX_VOODOO5))) {
- char *name;
+ char *name = NULL;
fb_info.dev = pdev->device;
switch (pdev->device) {
@@ -2314,7 +2314,12 @@
unsigned int h,to;
tdfxfb_createcursorshape(p);
- xline = (1 << fb_info.cursor.w)-1;
+ xline = ~((1 << (32 - fb_info.cursor.w)) - 1);
+
+#ifdef __LITTLE_ENDIAN
+ xline = swab32(xline);
+#endif
+
cursorbase=(u8*)fb_info.bufbase_virt;
h=fb_info.cursor.cursorimage;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)