aboutsummaryrefslogtreecommitdiffstats
path: root/z52.c
diff options
context:
space:
mode:
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) )