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

Re: firmware/drivers lcd.c,1.85,1.86

From: George Styles <george_at_ripnet.co.uk>
Date: Mon, 19 Aug 2002 13:13:02 +0100

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
> _at__at_ -879,17 +879,14 _at__at_
> }
>
>
> +/*
> + * 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];
> _at__at_ -897,6 +894,13 _at__at_
> 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))
> {
>
>
Received on 2002-08-19

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy