Oops... there are 164 elements in the shortened key_table[], not 128.

Anonymous bug report on SourceForge.
This commit is contained in:
William McBrine
2007-03-23 01:53:21 +00:00
parent 3d8eea8473
commit d4bde28b33
2 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@
# include <signal.h>
#endif
RCSID("$Id: pdckbd.c,v 1.80 2007/03/16 06:33:44 wmcbrine Exp $");
RCSID("$Id: pdckbd.c,v 1.81 2007/03/23 01:53:21 wmcbrine Exp $");
/*man-start**************************************************************
@@ -423,7 +423,7 @@ int PDC_get_key(void)
else if (scan == 0xe0 && key == 0x2f) /* Slash */
key = PADSLASH;
else if (key == 0x00 || (key == 0xe0 && scan > 53 && scan != 86))
key = (scan & 0x80) ? -1 : key_table[scan];
key = (scan > 0xa3) ? -1 : key_table[scan];
if (shift_status & 3)
{

View File

@@ -31,7 +31,7 @@ static bool key_pressed = FALSE;
static int mouse_events = 0;
#endif
RCSID("$Id: pdckbd.c,v 1.81 2007/03/16 06:33:44 wmcbrine Exp $");
RCSID("$Id: pdckbd.c,v 1.82 2007/03/23 01:53:21 wmcbrine Exp $");
/*man-start**************************************************************
@@ -423,7 +423,7 @@ int PDC_get_key(void)
else if (scan == 0xe0 && key == 0x2f) /* Slash */
key = PADSLASH;
else if (key == 0x00 || (key == 0xe0 && scan > 53 && scan != 86))
key = (scan & 0x80) ? -1 : key_table[scan];
key = (scan > 0xa3) ? -1 : key_table[scan];
if (keyInfo.fsState & (KBDSTF_LEFTSHIFT|KBDSTF_RIGHTSHIFT))
{