pull/13967/head
Nick Treleaven 2022-04-09 21:23:52 +01:00
parent f426a80f57
commit 36d232b865
1 changed files with 2 additions and 2 deletions

View File

@ -288,8 +288,8 @@ fn (mut ctx Context) parse_events() {
if !C.GetConsoleScreenBufferInfo(ctx.stdout_handle, &sb) { if !C.GetConsoleScreenBufferInfo(ctx.stdout_handle, &sb) {
panic('could not get screenbuffer info') panic('could not get screenbuffer info')
} }
w := sb.srWindow.Right - sb.srWindow.Left + 1 w := int(sb.srWindow.Right - sb.srWindow.Left + 1)
h := sb.srWindow.Bottom - sb.srWindow.Top + 1 h := int(sb.srWindow.Bottom - sb.srWindow.Top + 1)
utf8 := '($ctx.window_width, $ctx.window_height) -> ($w, $h)' utf8 := '($ctx.window_width, $ctx.window_height) -> ($w, $h)'
if w != ctx.window_width || h != ctx.window_height { if w != ctx.window_width || h != ctx.window_height {
ctx.window_width, ctx.window_height = w, h ctx.window_width, ctx.window_height = w, h