From 0db76d01d395805e4a7efef833a842053141aca2 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Sun, 20 Jul 2008 20:12:04 +0000 Subject: [PATCH] These symbols aren't defined in some versions of windows.h, so use the numeric values. --- win32/pdckbd.c | 5 ++--- win32/pdcscrn.c | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/win32/pdckbd.c b/win32/pdckbd.c index 64984447..1c5b05b0 100644 --- a/win32/pdckbd.c +++ b/win32/pdckbd.c @@ -2,7 +2,7 @@ #include "pdcwin.h" -RCSID("$Id: pdckbd.c,v 1.114 2008/07/14 04:24:52 wmcbrine Exp $") +RCSID("$Id: pdckbd.c,v 1.115 2008/07/20 20:12:04 wmcbrine Exp $") /*man-start************************************************************** @@ -643,8 +643,7 @@ int PDC_mouse_set(void) had on startup, and clear all other flags */ SetConsoleMode(pdc_con_in, SP->_trap_mbe ? - (ENABLE_MOUSE_INPUT|ENABLE_EXTENDED_FLAGS) : - (pdc_quick_edit|ENABLE_EXTENDED_FLAGS)); + (ENABLE_MOUSE_INPUT|0x0080) : (pdc_quick_edit|0x0080)); memset(&old_mouse_status, 0, sizeof(old_mouse_status)); diff --git a/win32/pdcscrn.c b/win32/pdcscrn.c index d1d14932..b48ddaaf 100644 --- a/win32/pdcscrn.c +++ b/win32/pdcscrn.c @@ -2,7 +2,7 @@ #include "pdcwin.h" -RCSID("$Id: pdcscrn.c,v 1.91 2008/07/14 04:24:52 wmcbrine Exp $") +RCSID("$Id: pdcscrn.c,v 1.92 2008/07/20 20:12:04 wmcbrine Exp $") #ifdef CHTYPE_LONG # define PDC_OFFSET 32 @@ -311,7 +311,7 @@ int PDC_scr_open(int argc, char **argv) the mouse is not enabled -- other console input settings are cleared */ - pdc_quick_edit = old_console_mode & ENABLE_QUICK_EDIT_MODE; + pdc_quick_edit = old_console_mode & 0x0040; SP->lines = (str = getenv("LINES")) ? atoi(str) : PDC_get_rows(); SP->cols = (str = getenv("COLS")) ? atoi(str) : PDC_get_columns();