X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/a832773496d46caa5e328d36a15b4918f24a804e..c5e438ecf3f6d7b8caab10e43a452f3555149309:/terminal.c diff --git a/terminal.c b/terminal.c index 738c7540..1e0a9fe4 100644 --- a/terminal.c +++ b/terminal.c @@ -319,6 +319,7 @@ Terminal *term_init(void *frontend) term->repeat_off = FALSE; term->termstate = TOPLEVEL; term->selstate = NO_SELECTION; + term->curstype = 0; term->screen = term->alt_screen = term->scrollback = NULL; term->disptop = 0; @@ -1372,12 +1373,12 @@ void term_out(Terminal *term) * Perform an actual beep if we're not overloaded. */ if (!cfg.bellovl || !term->beep_overloaded) { + beep(term->frontend, cfg.beep); if (cfg.beep == BELL_VISUAL) { term->in_vbell = TRUE; term->vbell_startpoint = ticks; term_update(term); - } else - beep(term->frontend, cfg.beep); + } } term->disptop = 0; } @@ -3106,7 +3107,7 @@ void term_invalidate(Terminal *term) * Paint the window in response to a WM_PAINT message. */ void term_paint(Terminal *term, Context ctx, - int left, int top, int right, int bottom) + int left, int top, int right, int bottom, int immediately) { int i, j; if (left < 0) left = 0; @@ -3128,7 +3129,7 @@ void term_paint(Terminal *term, Context ctx, * fails to actually do anything when re-sizing ... painting the wrong * window perhaps ? */ - if (alt_pressed) + if (immediately) do_paint (term, ctx, FALSE); }