mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 07:45:21 +00:00
These symbols aren't defined in some versions of windows.h, so use the
numeric values.
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user