1998-10-30 Sung-Hyun Nam <namsh@lgic.co.kr>

* color.c, slint.c: support transparent background if user use
'default' keyword for background color.
This commit is contained in:
Sung-Hyun Nam 1998-10-30 01:28:09 +00:00
parent 903eb5a880
commit 2b6cd9e300
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1998-10-30 Sung-Hyun Nam <namsh@lgic.co.kr>
* color.c, slint.c: support transparent background if user use
'default' keyword for background color.
Mon Oct 26 00:31:53 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* configure.in, Make.common.in: Split CPPFLAGS into CPPFLAGS and

View File

@ -126,7 +126,8 @@ struct color_table_s color_table [] = {
{ "cyan", COLOR_CYAN },
{ "brightcyan", COLOR_CYAN | A_BOLD },
{ "lightgray", COLOR_WHITE },
{ "white", COLOR_WHITE | A_BOLD }
{ "white", COLOR_WHITE | A_BOLD },
{ "default", 0 } /* hack for transparent background */
};
#ifdef HAVE_GNOME

View File

@ -351,6 +351,10 @@ int max_index = 0;
void
init_pair (int index, char *foreground, char *background)
{
/* hack for transparent background for Eterm, rxvt or else */
if (!strcmp(background, "default"))
background = NULL;
/* if foreground is default, I guess we should use normal fore-color. */
SLtt_set_color (index, "", foreground, background);
if (index > max_index)