- apply MartinS compile patch for missing function in curses

This commit is contained in:
Christophe Bothamy 2003-08-17 23:40:39 +00:00
parent 109805f5b8
commit fb171e482a
4 changed files with 4228 additions and 2347 deletions

View File

@ -798,7 +798,12 @@ typedef
#define BX_HAVE_STRDUP 0
#define BX_HAVE_STRREV 0
#define BX_HAVE_STRUCT_TIMEVAL 0
#define BX_HAVE_COLOR_SET 0 // used in term gui
// used in term gui
#define BX_HAVE_COLOR_SET 0
#define BX_HAVE_MVHLINE 0
#define BX_HAVE_MVVLINE 0
// set if your compiler does not permit an empty struct
#define BX_NO_EMPTY_STRUCTS 0

6550
bochs/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@ dnl // Process this file with autoconf to produce a configure script.
AC_PREREQ(2.50)
AC_INIT(bochs.h)
AC_REVISION([[$Id: configure.in,v 1.221 2003-08-10 16:03:56 vruppert Exp $]])
AC_REVISION([[$Id: configure.in,v 1.222 2003-08-17 23:40:38 cbothamy Exp $]])
AC_CONFIG_HEADER(config.h)
AC_CONFIG_HEADER(ltdlconf.h)
@ -2173,6 +2173,8 @@ if test "$with_term" = yes; then
old_LIBS="$LIBS"
LIBS="$LIBS $GUI_LINK_OPTS_TERM"
AC_CHECK_FUNCS(color_set, AC_DEFINE(BX_HAVE_COLOR_SET, 1))
AC_CHECK_FUNCS(mvhline, AC_DEFINE(BX_HAVE_MVHLINE, 1))
AC_CHECK_FUNCS(mvvline, AC_DEFINE(BX_HAVE_MVVLINE, 1))
LIBS="$old_LIBS"
fi

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: term.cc,v 1.30 2003-06-28 08:04:31 vruppert Exp $
// $Id: term.cc,v 1.31 2003-08-17 23:40:38 cbothamy Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2000 MandrakeSoft S.A.
@ -460,13 +460,19 @@ bx_term_gui_c::flush(void)
bx_term_gui_c::clear_screen(void)
{
clear();
#if BX_HAVE_COLOR_SET
color_set(7, NULL);
#endif
#if BX_HAVE_MVHLINE
if (LINES > (int)text_rows) {
mvhline(text_rows, 0, ACS_HLINE, text_cols);
}
#endif
#if BX_HAVE_MVVLINE
if (COLS > (int)text_cols) {
mvvline(0, text_cols, ACS_VLINE, text_rows);
}
#endif
if ((LINES > (int)text_rows) && (COLS > (int)text_cols)) {
mvaddch(text_rows, text_cols, ACS_LRCORNER);
}
@ -718,13 +724,19 @@ bx_term_gui_c::dimension_update(unsigned x, unsigned y, unsigned fheight, unsign
if (fheight > 0) {
text_cols = x / fwidth;
text_rows = y / fheight;
#if BX_HAVE_COLOR_SET
color_set(7, NULL);
#endif
#if BX_HAVE_MVHLINE
if (LINES > (int)text_rows) {
mvhline(text_rows, 0, ACS_HLINE, text_cols);
}
#endif
#if BX_HAVE_MVVLINE
if (COLS > (int)text_cols) {
mvvline(0, text_cols, ACS_VLINE, text_rows);
}
#endif
if ((LINES > (int)text_rows) && (COLS > (int)text_cols)) {
mvaddch(text_rows, text_cols, ACS_LRCORNER);
}