$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