mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-18 11:38:05 -05:00
Pass co-ordinates to term_paint() in characters rather than pixels. Partial
redraws now work rather better. [originally from svn r2230]
This commit is contained in:
parent
4c24598b57
commit
93a461028b
@ -1,4 +1,4 @@
|
|||||||
/* $Id: macterm.c,v 1.1 2002/11/19 02:13:46 ben Exp $ */
|
/* $Id: macterm.c,v 1.2 2002/11/19 22:05:48 ben Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 Simon Tatham
|
* Copyright (c) 1999 Simon Tatham
|
||||||
* Copyright (c) 1999, 2002 Ben Harris
|
* Copyright (c) 1999, 2002 Ben Harris
|
||||||
@ -753,10 +753,10 @@ void mac_updateterm(WindowPtr window) {
|
|||||||
BeginUpdate(window);
|
BeginUpdate(window);
|
||||||
pre_paint(s);
|
pre_paint(s);
|
||||||
term_paint(s->term, s,
|
term_paint(s->term, s,
|
||||||
(*window->visRgn)->rgnBBox.left,
|
PTOCC((*window->visRgn)->rgnBBox.left),
|
||||||
(*window->visRgn)->rgnBBox.top,
|
PTOCR((*window->visRgn)->rgnBBox.top),
|
||||||
(*window->visRgn)->rgnBBox.right,
|
PTOCC((*window->visRgn)->rgnBBox.right),
|
||||||
(*window->visRgn)->rgnBBox.bottom, 1);
|
PTOCR((*window->visRgn)->rgnBBox.bottom), 1);
|
||||||
/* Restore default colours in case the Window Manager uses them */
|
/* Restore default colours in case the Window Manager uses them */
|
||||||
if (HAVE_COLOR_QD()) {
|
if (HAVE_COLOR_QD()) {
|
||||||
PmForeColor(DEFAULT_FG);
|
PmForeColor(DEFAULT_FG);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user