From 2db11d210484ad754026e769c05ce85e10afbb7c Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 11 Jan 2004 21:04:21 +0000 Subject: minor fix --- src/FbTk/Texture.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/FbTk/Texture.cc b/src/FbTk/Texture.cc index 2b67842..41314ce 100644 --- a/src/FbTk/Texture.cc +++ b/src/FbTk/Texture.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Texture.cc,v 1.7 2004/01/11 20:33:24 fluxgen Exp $ +// $Id: Texture.cc,v 1.8 2004/01/11 21:04:21 fluxgen Exp $ #include "Texture.hh" @@ -77,9 +77,7 @@ void Texture::setFromString(const char * const texture_str) { else if (strstr(ts, "sunken")) addType(Texture::SUNKEN); else if (strstr(ts, "flat")) - addType(Texture::FLAT); - else if (strstr(ts, "invert")) - addType(Texture::INVERT); + addType(Texture::FLAT); else addType(Texture::RAISED); @@ -89,6 +87,9 @@ void Texture::setFromString(const char * const texture_str) { else addType(Texture::BEVEL1); + if (strstr(ts, "invert")) + addType(Texture::INVERT); + if (strstr(ts, "interlaced")) addType(Texture::INTERLACED); -- cgit v0.11.2