From 93a461028bbe509ab98614f43d51696bd1426d2c Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 19 Nov 2002 22:05:48 +0000 Subject: [PATCH] Pass co-ordinates to term_paint() in characters rather than pixels. Partial redraws now work rather better. [originally from svn r2230] --- mac/macterm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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);