Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: firmware/drivers lcd.c,1.85,1.86
From: George Styles (george_at_ripnet.co.uk)
Date: 2002-08-19


Are the loadable fonts proportional?

thanks
g

----- Original Message -----
From: "Bj?rn Stenberg" <zagor_at_users.sourceforge.net>
To: <rockbox-cvs_at_cool.haxx.se>
Sent: Monday, August 19, 2002 1:03 PM
Subject: cvs: firmware/drivers lcd.c,1.85,1.86

> Update of /cvsroot/rockbox/firmware/drivers
> In directory usw-pr-cvs1:/tmp/cvs-serv24647/firmware/drivers
>
> Modified Files:
> lcd.c
> Log Message:
> Fall back to fixed font if loadable font is not present
>
> Index: lcd.c
> ===================================================================
> RCS file: /cvsroot/rockbox/firmware/drivers/lcd.c,v
> retrieving revision 1.85
> retrieving revision 1.86
> diff -u -b -r1.85 -r1.86
> --- lcd.c 13 Aug 2002 21:02:09 -0000 1.85
> +++ lcd.c 19 Aug 2002 12:03:02 -0000 1.86
> @@ -879,17 +879,14 @@
> }
>
>
> +/*
> + * Put a string at specified bit position
> + */
> void lcd_putsxy(int x, int y, unsigned char *str, int thisfont)
> {
> -#ifdef LOADABLE_FONTS
> - lcd_putsldfxy(x,y,str);
> - (void)thisfont;
> -#elif LCD_PROPFONTS
> +#ifdef LCD_PROPFONTS
> lcd_putspropxy(x,y,str,thisfont);
> #else
> -/*
> - * Put a string at specified bit position
> - */
>
> int nx = fonts[thisfont];
> int ny = fontheight[thisfont];
> @@ -897,6 +894,13 @@
> unsigned char *src;
> int lcd_x = x;
> int lcd_y = y;
> +
> +#ifdef LOADABLE_FONTS
> + if ( _font ) {
> + lcd_putsldfxy(x,y,str);
> + return;
> + }
> +#endif
>
> while (((ch = *str++) != '\0') && (lcd_x + nx < LCD_WIDTH))
> {
>
>



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa