diff options
Diffstat (limited to 'z52.c')
-rw-r--r-- | z52.c | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -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) ) |