diff options
Diffstat (limited to 'Master/tlpkg/tlgs/lib/gs_fform.ps')
-rw-r--r-- | Master/tlpkg/tlgs/lib/gs_fform.ps | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/Master/tlpkg/tlgs/lib/gs_fform.ps b/Master/tlpkg/tlgs/lib/gs_fform.ps index ee2a870dee0..49aac44c5f2 100644 --- a/Master/tlpkg/tlgs/lib/gs_fform.ps +++ b/Master/tlpkg/tlgs/lib/gs_fform.ps @@ -1,19 +1,19 @@ % Copyright (C) 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved. -% +% % This software is provided AS-IS with no warranty, either express or % implied. -% +% % This software is distributed under license and may not be copied, % modified or distributed except as expressly authorized under the terms % of the license contained in the file LICENSE in this distribution. -% +% % For more information about licensing, please refer to % http://www.ghostscript.com/licensing/. For information on % commercial licensing, go to http://www.artifex.com/licensing/ or % contact Artifex Software, Inc., 101 Lucas Valley Road #110, % San Rafael, CA 94903, U.S.A., +1(415)492-9861. -% $Id: gs_fform.ps 6300 2005-12-28 19:56:24Z giles $ +% $Id$ % Form caching implemented in PostScript. % This implementation doesn't do the right thing about halftone or @@ -38,32 +38,32 @@ true setglobal /.execform1 { dup /Implementation known not { dup /FormType get 1 ne { /rangecheck signalerror } if - % The Implementation is a Pattern that will draw the form. + % The Implementation is a Pattern that will draw the form. currentglobal 1 index gcheck setglobal - % Stack: form global + % Stack: form global 10 dict begin /PatternType 1 def /PaintType 1 def % colored /TilingType 1 def % irrelevant - % Copy the BBox to the correct VM. + % Copy the BBox to the correct VM. /BBox 2 index /BBox get 4 array copy exch 1 index def - % Set XStep and YStep to very large numbers, - % so we won't get multiple copies of the form. + % Set XStep and YStep to very large numbers, + % so we won't get multiple copies of the form. /XStep 1 index dup 2 get exch 0 get sub 100 mul def /YStep exch dup 3 get exch 1 get sub 100 mul def /PaintProc 2 index /PaintProc get def currentdict end readonly - % Stack: form global impl + % Stack: form global impl exch setglobal 1 index /Implementation 3 -1 roll .forceput } if .formcachedict 1 index .knownget { - % Check whether we can use the cached value. - % Stack: form cachevalue + % Check whether we can use the cached value. + % Stack: form cachevalue matrix currentmatrix true 0 1 3 { - % Stack: form cachevalue curmat true index + % Stack: form cachevalue curmat true index 3 index 0 get 1 index get exch 3 index exch get ne { - pop pop false exit + pop pop false exit } if } for exch pop } { @@ -72,14 +72,14 @@ true setglobal { % Make a new cache entry. gsave matrix currentmatrix dup 4 0 put dup 5 0 put dup setmatrix - % Stack: form mat + % Stack: form mat 1 index /Implementation get 2 index /Matrix get makepattern 2 array astore .formcachedict 2 index 2 index put grestore } if - % Stack: form cachevalue + % Stack: form cachevalue -1 0 0 transform 2 { exch round cvi } repeat .setscreenphase 1 get setpattern |