mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 07:45:21 +00:00
Allow building Win32 console port with new color change code on Borland
5.5, potentially others with older wincon.h.
This commit is contained in:
@@ -32,6 +32,10 @@
|
||||
# define _CRT_SECURE_NO_DEPRECATE 1 /* kill nonsense warnings */
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) && !defined(__TURBOC__) && !defined(HAVE_INFOEX)
|
||||
# define HAVE_INFOEX
|
||||
#endif
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
typedef struct /* structure for ripped off lines */
|
||||
|
||||
@@ -65,6 +65,22 @@ static struct
|
||||
WCHAR ConsoleTitle[0x100];
|
||||
} console_info;
|
||||
|
||||
#ifndef HAVE_INFOEX
|
||||
/* Console screen buffer information (extended version) */
|
||||
typedef struct _CONSOLE_SCREEN_BUFFER_INFOEX {
|
||||
ULONG cbSize;
|
||||
COORD dwSize;
|
||||
COORD dwCursorPosition;
|
||||
WORD wAttributes;
|
||||
SMALL_RECT srWindow;
|
||||
COORD dwMaximumWindowSize;
|
||||
WORD wPopupAttributes;
|
||||
BOOL bFullscreenSupported;
|
||||
COLORREF ColorTable[16];
|
||||
} CONSOLE_SCREEN_BUFFER_INFOEX;
|
||||
typedef CONSOLE_SCREEN_BUFFER_INFOEX *PCONSOLE_SCREEN_BUFFER_INFOEX;
|
||||
#endif
|
||||
|
||||
static CONSOLE_SCREEN_BUFFER_INFO orig_scr;
|
||||
|
||||
static LPTOP_LEVEL_EXCEPTION_FILTER xcpt_filter;
|
||||
|
||||
Reference in New Issue
Block a user