Fixes #1772. Avoids WindowsDriver flickering when resizing. (#1778)

This commit is contained in:
BDisp
2022-06-10 17:09:28 +01:00
committed by GitHub
parent b33b658f5b
commit aff0210900

View File

@@ -1571,6 +1571,12 @@ namespace Terminal.Gui {
if (damageRegion.Left == -1)
return;
if (!HeightAsBuffer) {
var windowSize = WinConsole.GetConsoleBufferWindow (out _);
if (!windowSize.IsEmpty && (windowSize.Width != Cols || windowSize.Height != Rows))
return;
}
var bufferCoords = new WindowsConsole.Coord () {
X = (short)Clip.Width,
Y = (short)Clip.Height