From 8e78f2c795a62054caedfb91867abb90e842ea20 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Thu, 13 Jan 2000 16:27:52 +0000 Subject: [PATCH] Fix bug: Symbolic constants for accessing fields of LPARAM described in documentation do not work as advertised. Instead use explicit numeric constants. --- v7/src/microcode/ntscreen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/v7/src/microcode/ntscreen.c b/v7/src/microcode/ntscreen.c index 6dab5eb80..7e3215593 100644 --- a/v7/src/microcode/ntscreen.c +++ b/v7/src/microcode/ntscreen.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: ntscreen.c,v 1.40 2000/01/13 05:07:14 cph Exp $ +$Id: ntscreen.c,v 1.41 2000/01/13 16:27:52 cph Exp $ Copyright (c) 1993-2000 Massachusetts Institute of Technology @@ -1788,9 +1788,9 @@ flush_typeahead (SCREEN screen) /* The following handling of the keyboard is taken with only minor changes from Emacs 20.5. */ -#define LP_REPEAT(lparam) ((lparam) & KF_REPEAT) -#define LP_SCAN_CODE(lparam) (((lparam) & 0xff0000) >> 16) -#define LP_EXTENDED(lparam) (((lparam) & KF_EXTENDED) != 0) +#define LP_REPEAT(lparam) ((lparam) & 0x0000ffff) +#define LP_SCAN_CODE(lparam) (((lparam) & 0x00ff0000) >> 16) +#define LP_EXTENDED(lparam) (((lparam) & 0x01000000) != 0) /* GetKeyState and MapVirtualKey on Windows 95 do not actually distinguish between left and right keys as advertised. We test for this -- 2.25.1