ソースを参照

* src/graphics.c:

+ Replace CACA_WIDTH and CACA_HEIGHT with CACA_GEOMETRY.
  * src/caca.c:
    + Documented the CACA_GEOMETRY environment variable.
tags/v0.99.beta14
Sam Hocevar sam 21年前
コミット
854d5bf982
3個のファイルの変更9行の追加7行の削除
  1. +1
    -2
      NEWS
  2. +4
    -0
      src/caca.h
  3. +4
    -5
      src/graphics.c

+ 1
- 2
NEWS ファイルの表示

@@ -5,8 +5,7 @@ Changes between 0.3 and 0.4:

* preliminary X11 graphics driver
* support for simultaneously compiled-in drivers
* honour the CACA_DRIVER, CACA_WIDTH, CACA_HEIGHT and CACA_FONT environment
variables
* honour the CACA_DRIVER, CACA_GEOMETRY and CACA_FONT environment variables
* more documentation

Changes between 0.2 and 0.3:


+ 4
- 0
src/caca.h ファイルの表示

@@ -62,6 +62,10 @@
* - \c slang uses the S-Lang library.
* - \c x11 uses the native X11 driver.
*
* \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.
*
* \li \b CACA_BACKGROUND: set the background type.
* - \c solid uses solid coloured backgrounds for all characters. This
* feature does not work with all terminal emulators. This is the


+ 4
- 5
src/graphics.c ファイルの表示

@@ -520,13 +520,12 @@ int _caca_init_graphics(void)
const char *font_name = "8x13bold";
int i;

if(getenv("CACA_WIDTH"))
_caca_width = atoi(getenv("CACA_WIDTH"));
if(getenv("CACA_GEOMETRY"))
sscanf(getenv("CACA_GEOMETRY"),
"%ux%u", &_caca_width, &_caca_height);

if(!_caca_width)
_caca_width = 80;

if(getenv("CACA_HEIGHT"))
_caca_height = atoi(getenv("CACA_HEIGHT"));
if(!_caca_height)
_caca_height = 32;



読み込み中…
キャンセル
保存