mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
1bceb7791d
PR: 10251 Submitted by: Takeshi WATANABE <watanabe@komadori.planet.sci.kobe-u.ac.jp>
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
--- libhtmlw/HTMLformat.c.orig Wed May 28 04:42:34 1997
|
|
+++ libhtmlw/HTMLformat.c Sun Feb 21 11:42:52 1999
|
|
@@ -6150,6 +6150,7 @@
|
|
char *col_spec, *t;
|
|
XColor xcolor;
|
|
Colormap cmap;
|
|
+ Visual *v;
|
|
|
|
if (!(hw->html.use_body_colors))
|
|
return (False);
|
|
@@ -6179,7 +6180,11 @@
|
|
XtFree(t);
|
|
return(False);
|
|
}
|
|
- FindColor (XtDisplay(hw), cmap, &xcolor);
|
|
+ v = DefaultVisual(XtDisplay(hw), DefaultScreen(XtDisplay(hw)));
|
|
+ if ((v->class == TrueColor) || (v->class == DirectColor))
|
|
+ XAllocColor (XtDisplay(hw), cmap, &xcolor);
|
|
+ else
|
|
+ FindColor (XtDisplay(hw), cmap, &xcolor);
|
|
*value = xcolor.pixel;
|
|
|
|
XtFree (t);
|
|
--- src/main.c.orig Wed May 28 02:44:35 1997
|
|
+++ src/main.c Sun Feb 21 11:42:53 1999
|
|
@@ -1134,7 +1134,9 @@
|
|
CreateStrReq("filename", filename, False, SaveOCallback,
|
|
SaveDCallback, (XtPointer)d);
|
|
}
|
|
- else if ((d->content != NULL && strcasecmp(d->content, "text/html") == 0) ||
|
|
+ else if ((d->content != NULL && strncasecmp(d->content, "text/html", 9) == 0
|
|
+ && (!d->content[9] || d->content[9] == ' ' || d->content[9] == ';'))
|
|
+ ||
|
|
(d->pcontent != NULL && strcasecmp(d->pcontent, "text/html") == 0))
|
|
{
|
|
dn = (DocNode *)alloc_mem(sizeof(DocNode));
|