1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Richard's lazy-scrolling patch. This builds up scroll operations in a list,

combining adjacent ones for the same region, and runs them all in do_paint.
I'm not sure it's entirely right, but it works on my Mac in every case I've
tested.

[originally from svn r2763]
This commit is contained in:
Ben Harris
2003-02-01 12:26:33 +00:00
parent d3d8714f06
commit fe5f4c14f4
4 changed files with 65 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $Id: macterm.c,v 1.60 2003/01/28 00:35:54 ben Exp $ */
/* $Id: macterm.c,v 1.61 2003/02/01 12:26:33 ben Exp $ */
/*
* Copyright (c) 1999 Simon Tatham
* Copyright (c) 1999, 2002 Ben Harris
@ -1506,8 +1506,8 @@ void palette_reset(void *frontend) {
* Scroll the screen. (`lines' is +ve for scrolling forward, -ve
* for backward.)
*/
void do_scroll(void *frontend, int topline, int botline, int lines) {
Session *s = frontend;
void do_scroll(Context ctx, int topline, int botline, int lines) {
Session *s = ctx;
Rect r;
RgnHandle scrollrgn = NewRgn();
RgnHandle movedupdate = NewRgn();