mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
Debugger: Fix failure to respond to resizing the console window in Windows (issue with pdcurses) by calling resize_term(). This fixes a garbled distorted debugger UI whenever you resize the console window.
This commit is contained in:
@@ -2861,6 +2861,13 @@ Bit32u DEBUG_CheckKeys(void) {
|
||||
/* FIXME: This is supported by PDcurses, except I cannot figure out how to trigger it.
|
||||
The Windows console resizes around the console set by pdcurses and does not notify us as far as I can tell. */
|
||||
if (key == KEY_RESIZE) {
|
||||
#ifdef WIN32 /* pdcurses needs a little more work here to work properly in Windows.
|
||||
Note that not calling resize_term() prevents pdcurses from sending any more resize events. */
|
||||
if (dbg.win_main) {
|
||||
int win_main_maxy, win_main_maxx; getmaxyx(dbg.win_main, win_main_maxy, win_main_maxx);
|
||||
resize_term(win_main_maxy,win_main_maxx);
|
||||
}
|
||||
#endif
|
||||
void DEBUG_GUI_OnResize(void);
|
||||
DEBUG_GUI_OnResize();
|
||||
DEBUG_DrawScreen();
|
||||
|
Reference in New Issue
Block a user