Parcourir la source

GL driver : Updated documentation and added support for CACA_GEOMETRY

tags/v0.99.beta14
Jean-Yves Lamoureux jylam il y a 19 ans
Parent
révision
25987191eb
2 fichiers modifiés avec 8 ajouts et 2 suppressions
  1. +4
    -2
      src/caca.h
  2. +4
    -0
      src/graphics.c

+ 4
- 2
src/caca.h Voir le fichier

@@ -39,7 +39,8 @@
* Mac OS X) using either the slang library or the ncurses library, on DOS
* using the conio library, and on Windows systems using either slang or
* ncurses (through Cygwin emulation) or conio. There is also a native X11
* driver that does not require a text terminal.
* driver, and an OpenGL driver (through freeglut) that does not require a
* text terminal.
*
* \e libcaca is free software, released under the GNU Lesser General
* Public License. This ensures that \e libcaca will always remain free
@@ -61,10 +62,11 @@
* - \c ncurses uses the ncurses library.
* - \c slang uses the S-Lang library.
* - \c x11 uses the native X11 driver.
* - \c gl uses freeglut and opengl libraries.
*
* \li \b CACA_GEOMETRY: set the video display size. The format of this
* variable must be XxY, with X and Y being integer values. This option
* currently only works with the X11 driver.
* currently only works with the X11 and the GL driver.
*
* \li \b CACA_FONT: set the rendered font. The format of this variable is
* implementation dependent, but since it currently only works with the


+ 4
- 0
src/graphics.c Voir le fichier

@@ -967,6 +967,10 @@ int _caca_init_graphics(void)
int i;
char *empty;

if(getenv("CACA_GEOMETRY") && *(getenv("CACA_GEOMETRY")))
sscanf(getenv("CACA_GEOMETRY"),
"%ux%u", &_caca_width, &_caca_height);
if(!_caca_width)
_caca_width = 80;
if(!_caca_height)


Chargement…
Annuler
Enregistrer