diff options
author | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:38:39 +0000 |
---|---|---|
committer | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:38:39 +0000 |
commit | 68c155de3c3e83f53404288a318c5e29f0c4610f (patch) | |
tree | 3038e465a5cda497e52e93b4c5532b0dfa7d2c79 /z52.c | |
parent | 78c2bcf9e96ab00615ee6f96905bca78fcd52a00 (diff) | |
download | lout-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.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) ) |