Merge branch 'develop' into fix-nonbmp

This commit is contained in:
Tig
2022-11-07 21:23:38 -07:00
committed by GitHub
69 changed files with 3602 additions and 2228 deletions

View File

@@ -1451,16 +1451,20 @@ namespace Terminal.Gui {
{
TerminalResized = terminalResized;
var winSize = WinConsole.GetConsoleOutputWindow (out Point pos);
cols = winSize.Width;
rows = winSize.Height;
try {
var winSize = WinConsole.GetConsoleOutputWindow (out Point pos);
cols = winSize.Width;
rows = winSize.Height;
WindowsConsole.SmallRect.MakeEmpty (ref damageRegion);
WindowsConsole.SmallRect.MakeEmpty (ref damageRegion);
ResizeScreen ();
UpdateOffScreen ();
ResizeScreen ();
UpdateOffScreen ();
CreateColors ();
CreateColors ();
} catch (Win32Exception e) {
throw new InvalidOperationException ("The Windows Console output window is not available.", e);
}
}
public override void ResizeScreen ()