From: ben Date: Tue, 19 Nov 2002 22:05:48 +0000 (+0000) Subject: Pass co-ordinates to term_paint() in characters rather than pixels. Partial X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/e84d62e19ffe68c77ca6fc8c72c83280707ce412 Pass co-ordinates to term_paint() in characters rather than pixels. Partial redraws now work rather better. git-svn-id: svn://svn.tartarus.org/sgt/putty@2230 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/mac/macterm.c b/mac/macterm.c index ebbc8c71..86a11fc0 100644 --- a/mac/macterm.c +++ b/mac/macterm.c @@ -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, 2002 Ben Harris @@ -753,10 +753,10 @@ void mac_updateterm(WindowPtr window) { BeginUpdate(window); pre_paint(s); term_paint(s->term, s, - (*window->visRgn)->rgnBBox.left, - (*window->visRgn)->rgnBBox.top, - (*window->visRgn)->rgnBBox.right, - (*window->visRgn)->rgnBBox.bottom, 1); + PTOCC((*window->visRgn)->rgnBBox.left), + PTOCR((*window->visRgn)->rgnBBox.top), + PTOCC((*window->visRgn)->rgnBBox.right), + PTOCR((*window->visRgn)->rgnBBox.bottom), 1); /* Restore default colours in case the Window Manager uses them */ if (HAVE_COLOR_QD()) { PmForeColor(DEFAULT_FG);