Ignore:
Timestamp:
Dec 24, 2003, 4:43:45 PM (19 years ago)
Author:
Sam Hocevar
Message:
  • src/graphics.c: + Replace CACA_WIDTH and CACA_HEIGHT with CACA_GEOMETRY.
  • src/caca.c: + Documented the CACA_GEOMETRY environment variable.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/graphics.c

    r273 r274  
    521521        int i;
    522522
    523         if(getenv("CACA_WIDTH"))
    524             _caca_width = atoi(getenv("CACA_WIDTH"));
     523        if(getenv("CACA_GEOMETRY"))
     524            sscanf(getenv("CACA_GEOMETRY"),
     525                   "%ux%u", &_caca_width, &_caca_height);
     526
    525527        if(!_caca_width)
    526528            _caca_width = 80;
    527 
    528         if(getenv("CACA_HEIGHT"))
    529             _caca_height = atoi(getenv("CACA_HEIGHT"));
    530529        if(!_caca_height)
    531530            _caca_height = 32;
Note: See TracChangeset for help on using the changeset viewer.