[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Really turn textures off when `-t' is passed
From: |
Ludovic Courtès |
Subject: |
[PATCH] Really turn textures off when `-t' is passed |
Date: |
Sun, 01 Jul 2007 15:39:55 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Hi,
Currently, `-t' has approximately no effect on the PostScript output.
This is because PS code for textures still gets output by
address@hidden' (in `coltex') and installed through an invocation of
the `LoutSetTexture' PS function.
The patch makes `LoutSetTexture' a no-op when `UseTexture' is false,
which guarantees that the PS interpreter never gets to install any
textures.
Thanks,
Ludovic.
--- orig/z49.c
+++ mod/z49.c
@@ -895,9 +895,13 @@ static void PS_PrintBeforeFirstPage(FULL
p0("% p LoutSetTexture -");
p0("/LoutSetTexture");
p0("{");
- p0(" LoutCurrentCCS");
- p0(" 3 -1 roll");
- p0(" LoutSetCCSP");
+ if( UseTexture )
+ {
+ p0(" LoutCurrentCCS");
+ p0(" 3 -1 roll");
+ p0(" LoutSetCCSP");
+ }
+ else p0(" pop % textures not used");
p0("} bind def");
pnl;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Really turn textures off when `-t' is passed,
Ludovic Courtès <=