aboutsummaryrefslogtreecommitdiffstats
path: root/z52.c
diff options
context:
space:
mode:
authorJeffrey H. Kingston <jeff@it.usyd.edu.au>2010-09-14 20:38:39 +0000
committerJeffrey H. Kingston <jeff@it.usyd.edu.au>2010-09-14 20:38:39 +0000
commit68c155de3c3e83f53404288a318c5e29f0c4610f (patch)
tree3038e465a5cda497e52e93b4c5532b0dfa7d2c79 /z52.c
parent78c2bcf9e96ab00615ee6f96905bca78fcd52a00 (diff)
downloadlout-68c155de3c3e83f53404288a318c5e29f0c4610f.tar.gz
Lout 3.28.
git-svn-id: http://svn.savannah.nongnu.org/svn/lout/trunk@25 9365b830-b601-4143-9ba8-b4a8e2c3339c
Diffstat (limited to 'z52.c')
-rw-r--r--z52.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/z52.c b/z52.c
index 2f6a990..2830d4a 100644
--- a/z52.c
+++ b/z52.c
@@ -1,6 +1,6 @@
/*@z52.c:Texture Service:TextureChange, TextureCommand@***********************/
/* */
-/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.27) */
+/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.28) */
/* COPYRIGHT (C) 1991, 2002 Jeffrey H. Kingston */
/* */
/* Jeffrey H. Kingston (jeff@it.usyd.edu.au) */
@@ -162,6 +162,17 @@ static TEXTURE_TABLE pat_tab;
/*****************************************************************************/
/* */
+/* UseTexture */
+/* */
+/* When set to FALSE (by z01.c), means to ignore texture changing commands. */
+/* */
+/*****************************************************************************/
+
+BOOLEAN UseTexture = TRUE;
+
+
+/*****************************************************************************/
+/* */
/* TextureInit() */
/* */
/* Initialize this module. */
@@ -200,6 +211,12 @@ void TextureChange(STYLE *style, OBJECT x)
return;
}
+ /* if not using textures, do nothing */
+ if( !UseTexture )
+ { debug0(DTX, D, "TextureChange returning (not UseTexture)");
+ return;
+ }
+
/* if argument is nochange, do nothing */
if( StringEqual(string(x), STR_TEXTURE_NOCHANGE) ||
StringEqual(string(x), STR_EMPTY) )