Procházet zdrojové kódy

* src/caca.c:

+ Fixed a compilation bug reported by Thomas Klausner <wiz@NetBSD.org>.
tags/v0.99.beta14
Sam Hocevar sam před 21 roky
rodič
revize
0b9865bb1b
1 změnil soubory, kde provedl 12 přidání a 5 odebrání
  1. +12
    -5
      src/caca.c

+ 12
- 5
src/caca.c Zobrazit soubor

@@ -356,7 +356,11 @@ void caca_end(void)
{
/* Nothing to do */
}
else
#endif
{
/* Dummy */
}
}

/*
@@ -463,13 +467,16 @@ static void caca_init_features(void)

static void caca_init_terminal(void)
{
#if defined(HAVE_GETENV) && defined(HAVE_PUTENV) \
&& (defined(USE_SLANG) || defined(USE_NCURSES))
#if defined(HAVE_GETENV) && defined(HAVE_PUTENV)
char *term, *colorterm, *other;

if(_caca_driver != CACA_DRIVER_NCURSES &&
_caca_driver != CACA_DRIVER_SLANG)
return;
#if defined(USE_SLANG)
if(_caca_driver != CACA_DRIVER_SLANG)
#endif
#if defined(USE_NCURSES)
if(_caca_driver != CACA_DRIVER_NCURSES)
#endif
return;

term = getenv("TERM");
colorterm = getenv("COLORTERM");


Načítá se…
Zrušit
Uložit