Index: kit/CHANGELOG
diff -u kit/CHANGELOG:1.9 kit/CHANGELOG:removed
--- kit/CHANGELOG:1.9	Sat Sep  5 00:11:21 1998
+++ kit/CHANGELOG	Mon Aug  2 05:10:04 1999
@@ -1,51 +0,0 @@
-CHANGELOG for magicpoint
-$Id: CHANGELOG,v 1.9 1998/09/04 15:11:21 onoe Exp $
-
-Fri Sep  5 1998  onoe@sm.sony.co.jp
-	* handle key inputs from invoked terminal as pressed on Xserver,
-	  even if the Xserver is running on a remote host.
-
-Mon Aug 26 1998  itojun@iijlab.net
-	* new copyright. (BSDish copyright without clause 3)
-
-Mon Aug 25 1998  itojun@iijlab.net
-	* print.c: better x11/freetype/vflib -> postscript font mapping.
-
-Mon Aug 23 1998  kato@wide.ad.jp
-	* embedded image support (added mgpembed.pl and embed.c)
-
-Mon Aug 22 1998  itojun@iijlab.net
-	* added contrib/xmindpath, MindPath PocketPoint user-level driver.
-
-Fri Jul 10 11:57:59 JST 1998  itojun@iijlab.net
-	* cache gs-generated image file.
-	  Suggested by: luigi@FreeBSD.org
-
-Mon Jul  6 11:38:32 JST 1998  itojun@iijlab.net
-	* capable of handling GB2312 and KSC5601 encoding.
-	  they must be encoded by using iso-2022 like escape sequences.
-	  EUC-cn or EUC-kr does not work.
-	* -x option is added.
-
-Thu Jul  2 18:04:16 JST 1998  itojun@iijlab.net
-	* eliminate gsview.
-	* revamp "xfont" directive. (see SYNTAX for detail)
-
-Thu Jun 25 13:10:28 JST 1998  itojun@iijlab.net
-	* print.c: color postscript support by "mgp2ps -c".
-
-changes between 1.02a and 1.03a:
-	* To allow color name that has space inbetween ("dark blue"), 
-	  color name after directives SHOULD come with doublequote.
-	  Therefore,
-		%fore blue
-	  should be
-		%fore "blue"
-	  At this moment, doublequote can be ommitted for backward
-	  compatibility.  We may require to have doublequote in the future.
-	  Font names and other string parameter obeys the same rule.
-	* %image is now capable of rendering encapsulated postscript files
-	  (*.eps).
-		%image foo.eps
-	  should work fine.
-	  By using -X option, you can specify device name for ghostscript.
Index: kit/ctlwords.pl
diff -u kit/ctlwords.pl:1.2 kit/ctlwords.pl:removed
--- kit/ctlwords.pl:1.2	Sat Sep  5 06:05:08 1998
+++ kit/ctlwords.pl	Mon Aug  2 05:10:06 1999
@@ -1,12 +0,0 @@
-#! /usr/bin/perl
-$counter = 0;	# 0 origin
-print "/* generated by ctlwords.awk. do not edit by hand. */\n";
-
-while (<>) {
-	next if (!/^\/\*CTL\*\//);
-	next if ($_ !~ /(CTL_[A-Z0-9]+)/);
-
-	$word = $1;
-	print "#define $word\t$counter\n";
-	$counter++;
-}
Index: kit/draw.c
diff -u kit/draw.c:1.154 kit/draw.c:1.156
--- kit/draw.c:1.154	Fri Jul 23 03:21:16 1999
+++ kit/draw.c	Wed Jul 28 18:55:07 1999
@@ -26,7 +26,7 @@
  * SUCH DAMAGE.
  */
 /*
- * $Id: draw.c,v 1.154 1999/07/22 18:21:16 nishida Exp $
+ * $Id: draw.c,v 1.156 1999/07/28 09:55:07 nishida Exp $
  */
 
 #include "mgp.h"
@@ -3920,7 +3920,7 @@
 {
 	int	i;
 
-	if (!ctlcmp(bg_ctl_last, ctl)) return; 	
+	if (!ctl || !ctlcmp(bg_ctl_last, ctl)) return; 	
 
 	bg_ctl_last = ctl;
 	if (ctl->ct_op == CTL_BIMAGE || ctl->ct_op == CTL_BGRAD) {
@@ -4034,7 +4034,7 @@
 	for (i = 0; i < MAXBGCACHE; i ++) {
 		if (bgcache[i].image){
 			freeXImage(bgcache[i].image, bgcache[i].ximageinfo);
-			freeImage(bgcache[0].image);
+			freeImage(bgcache[i].image);
 		}
 		bgcache[i].ctl = NULL;
 		bgcache[i].image = NULL;
Index: kit/mgp.c
diff -u kit/mgp.c:1.103 kit/mgp.c:1.104
--- kit/mgp.c:1.103	Sun Jul  4 01:15:06 1999
+++ kit/mgp.c	Wed Jul 28 12:44:52 1999
@@ -26,10 +26,10 @@
  * SUCH DAMAGE.
  */
 /*
- * $Id: mgp.c,v 1.103 1999/07/03 16:15:06 nishida Exp $
+ * $Id: mgp.c,v 1.104 1999/07/28 03:44:52 kazu Exp $
  */
 
-static char *mgp_version = "1.05a (990617)";
+static char *mgp_version = "1.06a (990728)";
 
 #include "mgp.h"
 #ifdef USE_SETLOCALE
Index: kit/tfont.c
diff -u kit/tfont.c:1.32 kit/tfont.c:1.33
--- kit/tfont.c:1.32	Mon Jul 26 00:58:53 1999
+++ kit/tfont.c	Wed Jul 28 02:05:08 1999
@@ -26,7 +26,7 @@
  * SUCH DAMAGE.
  */
 /*
- * $Id: tfont.c,v 1.32 1999/07/25 15:58:53 nishida Exp $
+ * $Id: tfont.c,v 1.33 1999/07/27 17:05:08 nishida Exp $
  */
 
 #include "mgp.h"
@@ -441,7 +441,7 @@
 #endif
 	if (!unicode)
 		return NULL;
-	if ((error = LoadTrueTypeChar(unicode, 1))) {
+	if ((error = LoadTrueTypeChar(unicode, 0))) {
 		fprintf(stderr, "LoadTrueTypeChar fail %d\n", (int)error);
 		fprintf(stderr, "fontfile: \"%s\" char: '%c' (0x%04x)\n",
 			tfloadedfont[tfcuridx],
