aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/chimera/files/patch-ab
blob: c26d56db1475e65b449abb1e72f7dff3252e0629 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- 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));