tty(windows): fix resize event screen size translation from srWindow
This commit is contained in:
parent
b84f9e58a6
commit
c213919849
1 changed files with 2 additions and 2 deletions
|
@ -379,8 +379,8 @@ pub fn nextEvent(self: *Tty) !Event {
|
|||
return windows.unexpectedError(windows.kernel32.GetLastError());
|
||||
}
|
||||
const window_rect = console_info.srWindow;
|
||||
const width = window_rect.Right - window_rect.Left;
|
||||
const height = window_rect.Bottom - window_rect.Top;
|
||||
const width = window_rect.Right - window_rect.Left + 1;
|
||||
const height = window_rect.Bottom - window_rect.Top + 1;
|
||||
return .{
|
||||
.winsize = .{
|
||||
.cols = @intCast(width),
|
||||
|
|
Loading…
Reference in a new issue