$NetBSD: patch-ab,v 1.3 2007/10/10 22:36:05 rillig Exp $

--- X/DispKbd.c.orig	2002-05-06 00:09:39.000000000 +0200
+++ X/DispKbd.c	2007-10-11 00:34:12.000000000 +0200
@@ -45,7 +45,9 @@
 #define HD HOSTDISPLAY
 #define DC DISPLAYCONTROL
 
+#if 0
 static unsigned AutoKey(ARMul_State *state);
+#endif
 
 static struct EventNode enodes[4];
 //static int autokeyenode=0; /* Flips between 0 and 1 */
@@ -87,12 +89,14 @@ static unsigned long get_pixelval(unsign
 } /* get_pixval */
 
 /*----------------------------------------------------------------------------*/
+#if 0
 static unsigned AutoKey(ARMul_State *state) {
   /*fprintf(stderr,"AutoKey!\n"); */
   KBD.TimerIntHasHappened+=2;
 
   return 0;
 };
+#endif
 /*-----------------------------------------------------------------------------*/
 /* I'm not confident that this is completely correct - if it's wrong all hell
   is bound to break loose! If it works however it should speed things up
@@ -731,7 +735,7 @@ static void RefreshDisplay_TrueColor_8bp
   int DisplayWidth=(VIDC.Horiz_DisplayEnd-VIDC.Horiz_DisplayStart)*2;
   int x,y,memoffset;
   int VisibleDisplayWidth;
-  unsigned char Buffer[MonitorWidth];
+  char Buffer[MonitorWidth];
   char *ImgPtr=HD.ImageData;
   
   /* First configure the colourmap */
@@ -762,7 +766,7 @@ static void RefreshDisplay_TrueColor_8bp
       CopyScreenRAM(state,memoffset,VisibleDisplayWidth, Buffer);
 
       for(x=0;x<VisibleDisplayWidth;x++) {
-        XPutPixel(HD.DisplayImage,x,y,HD.pixelMap[Buffer[x]]);
+        XPutPixel(HD.DisplayImage,x,y,HD.pixelMap[(unsigned char)Buffer[x]]);
       }; /* X loop */
     }; /* Refresh test */
   }; /* y */
@@ -1119,7 +1123,7 @@ static void ProcessKey(ARMul_State *stat
       {
 	XColor black, dummy;
 	Pixmap bm_no;
-	static unsigned char bm_no_data[] = { 0,0,0,0, 0,0,0,0 };
+	static char bm_no_data[] = { 0,0,0,0, 0,0,0,0 };
        XAllocNamedColor(HD.disp,HD.ArcsColormap,"black",&black,&dummy);
 	bm_no = XCreateBitmapFromData(HD.disp, HD.MainPane, bm_no_data, 8,8);
        XDefineCursor(HD.disp, HD.MainPane, XCreatePixmapCursor(HD.disp, bm_no, bm_no, &black, &black,0, 0));
