  
  SHELL=/bin/sh
 --- extern.h.orig	2003-08-22 08:27:57.000000000 -0400
-+++ extern.h	2006-07-24 05:52:52.000000000 -0400
++++ extern.h	2006-07-24 13:48:24.000000000 -0400
 @@ -139,6 +139,12 @@
  extern void  FreePseudowin __P((struct win *));
  #endif
  extern void  nwin_compose __P((struct NewWindow *, struct NewWindow *, struct NewWindow *));
 +
 +#ifdef IPC_EXPORT_IMAGE
-+extern void  setWinImage __P((const char *, unsigned char *));
++extern void  SetWinImage __P((const char *, unsigned char *));
 +extern void  CopyWinImage __P((struct win *, unsigned char *));
 +#endif
 +

+  else
+    {
+      /* no window pointer */
+      setWinImage( "no active scren", dest );
+    }
+}
+

+#ifdef COLOR
+      for( y = 0; y < p->w_height; y++ )
+        {
+          struct mline *ml = &p->w_mlines[y];
+          x = 0;
+          if( st && (y == STATLINE) )
+            for( ; x<p->w_width; *d++ = 0X70, x++ );
+          for( ; x<p->w_width; x++ )
+            {
+              static const unsigned char tr[] =
+                {
+                  0X0, 0X4, 0X2, 0X6, 0X1, 0X5, 0X3, 0X7,
+                  0X8, 0XC, 0XA, 0XE, 0X9, 0XD, 0XB, 0XF
+                };
+
+              struct mchar mc;
+              int fg;
+              int bg;
+
+              copy_mline2mchar( &mc, ml, x );
+              fg = rend_getfg(&mc);
+              bg = rend_getbg(&mc);
+
+              fg = fg? tr[coli2e(fg) & 0XF]: 0X7;
+              bg = bg? tr[coli2e(bg) & 0XF]: 0X0;
+              *d++ = fg | (bg << 4);
+            }
+        }
+#endif /* COLOR */
+
