Re: [AD] CVS: allegro/src modesel.c,1.17,1.18

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]



On Sun, 11 Nov 2001, Eric Botcazou wrote:

> Update of /cvsroot/alleg/allegro/src
> In directory usw-pr-cvs1:/tmp/cvs-serv9211/src
>
> Modified Files:
> 	modesel.c
> Log Message:
> Unicodified the gfx mode selector and fixed some glitches
>
> Index: modesel.c
> ===================================================================
> RCS file: /cvsroot/alleg/allegro/src/modesel.c,v
> retrieving revision 1.17
> retrieving revision 1.18
> diff -u -d -r1.17 -r1.18
> --- modesel.c	2001/11/06 15:30:46	1.17
> +++ modesel.c	2001/11/11 15:51:14	1.18
> @@ -56,9 +56,11 @@
>     char bpp[5];
>  } MODE_LIST;
>
> +#define DRVNAME_SIZE  128
> +
>  typedef struct DRIVER_LIST {
>     int       id;
> -   char      *name;
> +   char      name[DRVNAME_SIZE];
>     void      *fetch_mode_list_ptr;
>     MODE_LIST *mode_list;
> [...172 lines suppressed...]
>     }
>
>     switch (bpp_entry) {
> -      case BPP_08: sprintf(mode_string, " 8 bpp (256 color)"); break;
> -      case BPP_15: sprintf(mode_string, "15 bpp (32K color)"); break;
> -      case BPP_16: sprintf(mode_string, "16 bpp (64K color)"); break;
> -      case BPP_24: sprintf(mode_string, "24 bpp (16M color)"); break;
> -      case BPP_32: sprintf(mode_string, "32 bpp (16M color)"); break;
> +      case BPP_08: do_uconvert(" 8 bpp (256 color)", U_ASCII, mode_string, U_CURRENT, sizeof(mode_string)); break;
> +      case BPP_15: do_uconvert("15 bpp (32K color)", U_ASCII, mode_string, U_CURRENT, sizeof(mode_string)); break;
> +      case BPP_16: do_uconvert("16 bpp (64K color)", U_ASCII, mode_string, U_CURRENT, sizeof(mode_string)); break;
> +      case BPP_24: do_uconvert("24 bpp (16M color)", U_ASCII, mode_string, U_CURRENT, sizeof(mode_string)); break;
> +      case BPP_32: do_uconvert("32 bpp (16M color)", U_ASCII, mode_string, U_CURRENT, sizeof(mode_string)); break;

Why these strings are not translatable? I now that strings starting with
space can't be translated as allegro's config routines don't allow that,
but generally it could be marked as translatable.

Have a nice day.

Stepan Roh



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/