Changeset 364


Ignore:
Timestamp:
Feb 2, 2004, 2:51:55 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • configure.ac src/graphics: + Check for resize_term and resizeterm in -lncurses.
Location:
libcaca/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r362 r364  
    128128      AC_DEFINE(USE_NCURSES, 1, Define to activate the ncurses backend driver)
    129129      CACA_LIBS="${CACA_LIBS} -lncurses"
    130       CACA_DRIVERS="${CACA_DRIVERS} ncurses"])])
     130      CACA_DRIVERS="${CACA_DRIVERS} ncurses"
     131      dnl  Check for resizeterm or resize_term
     132      SAVED_LIBS="${LIBS}"
     133      LIBS="${LIBS} -lncurses"
     134      AC_CHECK_FUNCS(resizeterm resize_term)
     135      LIBS="${SAVED_LIBS}"])])
    131136  if test "${ac_cv_my_have_ncurses}" = "no" -a "${enable_ncurses}" = "yes"; then
    132137    AC_MSG_ERROR([cannot find ncurses development files])
  • libcaca/trunk/msvc/config.h

    r362 r364  
    1313/* #undef HAVE_NCURSES_H */
    1414#define HAVE_PUTENV 1
     15/* #undef HAVE_RESIZETERM */
     16/* #undef HAVE_RESIZE_TERM */
    1517/* #undef HAVE_SIGNAL */
    1618/* #undef HAVE_SIGNAL_H */
  • libcaca/trunk/src/graphics.c

    r361 r364  
    13101310            _caca_width = size.ws_col;
    13111311            _caca_height = size.ws_row;
     1312#if defined(HAVE_RESIZE_TERM)
    13121313            resize_term(_caca_height, _caca_width);
     1314#else
     1315            resizeterm(_caca_height, _caca_width);
     1316#endif
    13131317            wrefresh(curscr);
    13141318        }
Note: See TracChangeset for help on using the changeset viewer.