dslinux/linux-2.6.x/drivers/video softcursor.c

stsp stsp at user.in-berlin.de
Sat Oct 7 17:00:22 CEST 2006


Update of /cvsroot/dslinux/dslinux/linux-2.6.x/drivers/video
In directory antilope:/tmp/cvs-serv442/drivers/video

Modified Files:
	softcursor.c 
Log Message:
Add 4x9 font.

Patch by Cayenne Boyer:

 Here's the patch for the 4x9 font I created because you can get a lot more 
 readability without sacrificing characters per line by letting the font be
 a little taller.



Index: softcursor.c
===================================================================
RCS file: /cvsroot/dslinux/dslinux/linux-2.6.x/drivers/video/softcursor.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- softcursor.c	20 Feb 2006 20:30:48 -0000	1.3
+++ softcursor.c	7 Oct 2006 15:00:20 -0000	1.4
@@ -36,10 +36,10 @@
 		return -ENOMEM;
 #ifdef CONFIG_ARCH_NDS
 	/* XXX: We need to align the image pointer on a four-byte boundary
-	 * for 4x6 and 6x6 fonts to work. */
+	 * for 4x6, 6x6 and 6x9 fonts to work. */
 	if ((dsize % 4) != 0)
-		/* assume dsize is 6 (not greater 8 anyway) */
-		dsize = 8;
+		/* set dsize to the next larger multiple of 4 */
+		dsize += 4 - (dsize % 4);
 #endif
 	image = (struct fb_image *) (src + dsize);
 	*image = cursor->image;




More information about the dslinux-commit mailing list