Changeset 253


Ignore:
Timestamp:
Dec 16, 2003, 10:06:46 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • src/bitmap.c: + If the alpha palette is all-zero, forget the alpha channel.
  • configure.ac: + Export HAVE_IMLIB2_H and the like.
Location:
libcaca/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r251 r253  
    2525  [  --enable-conio          DOS conio.h graphics support (default disabled)])
    2626AC_ARG_ENABLE(x11,
    27   [  --enable-x11            X11 support (default disabled)])
     27  [  --enable-x11            X11 support (default disabled) (EXPERIMENTAL)])
    2828
    2929AC_CHECK_HEADERS(inttypes.h endian.h)
     
    3131
    3232if test "${enable_conio}" = "yes"; then
    33   AC_CHECK_HEADER(conio.h,:,AC_MSG_ERROR([cannot find conio.h header]))
     33  AC_CHECK_HEADERS(conio.h,:,AC_MSG_ERROR([cannot find conio.h header]))
    3434  AC_MSG_CHECKING(for ScreenUpdate in pc.h)
    3535  AC_EGREP_HEADER(ScreenUpdate,pc.h,[
     
    4040  AC_DEFINE(USE_CONIO, 1, Define if the backend driver is conio.h)
    4141elif test "${enable_slang}" = "yes"; then
    42   AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
     42  AC_CHECK_HEADERS(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
    4343  AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
    4444  AC_DEFINE(USE_SLANG, 1, Define if the backend driver is slang)
     
    5959  CACA_LIBS="${CACA_LIBS} ${X_LIBS}"
    6060elif test "${enable_ncurses}" != "no"; then
    61   AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
     61  AC_CHECK_HEADERS(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
    6262  AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
    6363  AC_DEFINE(USE_NCURSES, 1, Define if the backend driver is ncurses)
     
    9191  CPPFLAGS="${CPPFLAGS} `imlib2-config --cflags` -DX_DISPLAY_MISSING=1"
    9292fi
    93 AC_CHECK_HEADER(Imlib2.h, USE_IMLIB2=:, USE_IMLIB2=false)
     93AC_CHECK_HEADERS(Imlib2.h, USE_IMLIB2=:, USE_IMLIB2=false)
    9494CPPFLAGS="${save_CPPFLAGS}"
    9595AM_CONDITIONAL(USE_IMLIB2, ${USE_IMLIB2})
  • libcaca/trunk/src/bitmap.c

    r252 r253  
    202202    }
    203203
    204     if(has_alpha)
    205         bitmap->has_alpha = has_alpha;
     204    bitmap->has_alpha = has_alpha;
    206205}
    207206
Note: See TracChangeset for help on using the changeset viewer.