Fix y-offset bug in X-GRAPHICS-FILL-POLYGON.
authorChris Hanson <org/chris-hanson/cph>
Tue, 18 Aug 1992 19:33:19 +0000 (19:33 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 18 Aug 1992 19:33:19 +0000 (19:33 +0000)
v7/src/microcode/x11graph.c

index 2b6c25ce4a60a6b0fad8f06f4fa366a3b027660f..b7e014bc4bf4ebd4d5c0e1e4d60d572c0a7a117c 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/x11graph.c,v 1.28 1992/07/20 20:12:16 arthur Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/x11graph.c,v 1.29 1992/08/18 19:33:19 cph Exp $
 
 Copyright (c) 1989-92 Massachusetts Institute of Technology
 
@@ -600,7 +600,8 @@ DEFUN (x_polygon_vector_arg, (xw, argno),
          double dy =
            ((XW_Y_SLOPE (xw))
             * ((real_number_to_double (coord)) - (XW_Y_BOTTOM (xw))));
-         (scan_result -> y) = (((XW_Y_SIZE (xw)) - 1) + (ROUND_FLOAT (dy)));
+         (scan_result -> y) =
+           (border + ((XW_Y_SIZE (xw)) - 1) + (ROUND_FLOAT (dy)));
        }
        scan_result += 1;
       }