Pass co-ordinates to term_paint() in characters rather than pixels. Partial
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 19 Nov 2002 22:05:48 +0000 (22:05 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 19 Nov 2002 22:05:48 +0000 (22:05 +0000)
redraws now work rather better.

git-svn-id: svn://svn.tartarus.org/sgt/putty@2230 cda61777-01e9-0310-a592-d414129be87e

mac/macterm.c

index ebbc8c7..86a11fc 100644 (file)
@@ -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);