attempt to fix a reported regression in consoletty.c
This commit is contained in:
@@ -162,6 +162,8 @@ extern void (*ibmgraphics_mode_callback)(void); /* symbols.c */
|
|||||||
extern void (*utf8graphics_mode_callback)(void); /* symbols.c */
|
extern void (*utf8graphics_mode_callback)(void); /* symbols.c */
|
||||||
#endif /* VIRTUAL_TERMINAL_SEQUENCES */
|
#endif /* VIRTUAL_TERMINAL_SEQUENCES */
|
||||||
|
|
||||||
|
static boolean OnWindows95_98_Me(void);
|
||||||
|
|
||||||
static void init_custom_colors(void);
|
static void init_custom_colors(void);
|
||||||
static void free_custom_colors(void);
|
static void free_custom_colors(void);
|
||||||
|
|
||||||
@@ -892,6 +894,12 @@ void buffer_write(cell_t * buffer, cell_t * cell, COORD pos)
|
|||||||
back_buffer_flip();
|
back_buffer_flip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static boolean
|
||||||
|
OnWindows95_98_Me(void)
|
||||||
|
{
|
||||||
|
return ((GetVersion() & 0x80000000) != 0);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Called after returning from ! or ^Z
|
* Called after returning from ! or ^Z
|
||||||
*/
|
*/
|
||||||
@@ -2525,7 +2533,8 @@ void nethack_enter_consoletty(void)
|
|||||||
buffer_fill_to_end(console.back_buffer, &clear_cell, 0, 0);
|
buffer_fill_to_end(console.back_buffer, &clear_cell, 0, 0);
|
||||||
|
|
||||||
/* determine whether OS version has unicode support */
|
/* determine whether OS version has unicode support */
|
||||||
console.has_unicode = (IsWindows8OrGreater());
|
/* console.has_unicode = (IsWindows8OrGreater()); */
|
||||||
|
console.has_unicode = !OnWindows95_98_Me();
|
||||||
|
|
||||||
#ifdef VIRTUAL_TERMINAL_SEQUENCES
|
#ifdef VIRTUAL_TERMINAL_SEQUENCES
|
||||||
/* store the original code page*/
|
/* store the original code page*/
|
||||||
|
|||||||
Reference in New Issue
Block a user