From: Chris Hanson Date: Tue, 18 Aug 1992 19:33:19 +0000 (+0000) Subject: Fix y-offset bug in X-GRAPHICS-FILL-POLYGON. X-Git-Tag: 20090517-FFI~9111 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=fd2aee52cd021d2370b80531ce483856e0805b65;p=mit-scheme.git Fix y-offset bug in X-GRAPHICS-FILL-POLYGON. --- diff --git a/v7/src/microcode/x11graph.c b/v7/src/microcode/x11graph.c index 2b6c25ce4..b7e014bc4 100644 --- a/v7/src/microcode/x11graph.c +++ b/v7/src/microcode/x11graph.c @@ -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; }