a modern tui library written in zig

tty(windows): fix resize event screen size translation from srWindow

authored by neurocyte.flow-control.dev and committed by rockorager.dev c2139198 b84f9e58

+2 -2
+2 -2
src/windows/Tty.zig
··· 379 return windows.unexpectedError(windows.kernel32.GetLastError()); 380 } 381 const window_rect = console_info.srWindow; 382 - const width = window_rect.Right - window_rect.Left; 383 - const height = window_rect.Bottom - window_rect.Top; 384 return .{ 385 .winsize = .{ 386 .cols = @intCast(width),
··· 379 return windows.unexpectedError(windows.kernel32.GetLastError()); 380 } 381 const window_rect = console_info.srWindow; 382 + const width = window_rect.Right - window_rect.Left + 1; 383 + const height = window_rect.Bottom - window_rect.Top + 1; 384 return .{ 385 .winsize = .{ 386 .cols = @intCast(width),