Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f544507b
Commit
f544507b
authored
Feb 25, 1999
by
Michael Veksler
Committed by
Alexandre Julliard
Feb 25, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added configure check for getbkgd and define HAVE_GETBKGD.
parent
40d9d3d0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
0 deletions
+12
-0
configure
configure
+0
-0
configure.in
configure.in
+2
-0
ncurses.c
console/ncurses.c
+4
-0
acconfig.h
include/acconfig.h
+3
-0
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
f544507b
This diff is collapsed.
Click to expand it.
configure.in
View file @
f544507b
...
...
@@ -149,12 +149,14 @@ fi
if test "$ac_cv_lib_ncurses_waddch" = "yes"
then
AC_CHECK_LIB(ncurses,resizeterm,AC_DEFINE(HAVE_RESIZETERM))
AC_CHECK_LIB(ncurses,getbkgd,AC_DEFINE(HAVE_GETBKGD))
else
AC_CHECK_HEADERS(curses.h)
if test "$ac_cv_header_curses_h" = "yes"
then
AC_CHECK_LIB(curses,waddch)
AC_CHECK_LIB(curses,resizeterm,AC_DEFINE(HAVE_RESIZETERM))
AC_CHECK_LIB(curses,getbkgd,AC_DEFINE(HAVE_GETBKGD))
fi
fi
...
...
console/ncurses.c
View file @
f544507b
...
...
@@ -57,7 +57,9 @@ void NCURSES_Start()
driver
.
getCharacterAtCursor
=
NCURSES_GetCharacterAtCursor
;
driver
.
clearScreen
=
NCURSES_ClearScreen
;
driver
.
allocColor
=
NCURSES_AllocColor
;
#ifdef HAVE_GETBKGD
driver
.
setBackgroundColor
=
NCURSES_SetBackgroundColor
;
#endif
#ifdef HAVE_RESIZETERM
driver
.
notifyResizeScreen
=
NCURSES_NotifyResizeScreen
;
#endif
/* HAVE_RESIZETERM */
...
...
@@ -213,6 +215,7 @@ void NCURSES_SetBackgroundColor(int fg, int bg)
wbkgd
(
stdscr
,
COLOR_PAIR
(
pair
));
}
#ifdef HAVE_GETBKGD
void
NCURSES_GetBackgroundColor
(
int
*
fg
,
int
*
bg
)
{
chtype
background
;
...
...
@@ -227,6 +230,7 @@ void NCURSES_GetBackgroundColor(int *fg, int *bg)
*
fg
=
sfg
;
*
bg
=
sbg
;
}
#endif
/* HAVE_GETBKGD */
#ifdef HAVE_RESIZETERM
...
...
include/acconfig.h
View file @
f544507b
...
...
@@ -69,6 +69,9 @@
/* Define if ncurses have the new resizeterm function */
#undef HAVE_RESIZETERM
/* Define if ncurses have the new getbkgd function */
#undef HAVE_GETBKGD
/* Define if we can a compatible xterm program */
#undef XTERM_PROGRAM
...
...
include/config.h.in
View file @
f544507b
...
...
@@ -75,6 +75,9 @@
/* Define if ncurses have the new resizeterm function */
#undef HAVE_RESIZETERM
/* Define if ncurses have the new getbkgd function */
#undef HAVE_GETBKGD
/* Define if IPX should use netipx/ipx.h from libc */
#undef HAVE_IPX_GNU
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment