aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Texture.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Texture.cc')
-rw-r--r--src/FbTk/Texture.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/FbTk/Texture.cc b/src/FbTk/Texture.cc
index e06c328..0395cd5 100644
--- a/src/FbTk/Texture.cc
+++ b/src/FbTk/Texture.cc
@@ -77,15 +77,19 @@ void Texture::setFromString(const char * const texture_str) {
77 addType(Texture::VERTICAL); 77 addType(Texture::VERTICAL);
78 else 78 else
79 addType(Texture::DIAGONAL); 79 addType(Texture::DIAGONAL);
80 } else // default is "solid", according to ThemeItems.cc 80 } else if (strstr(ts, "solid"))
81 addType(Texture::SOLID); 81 addType(Texture::SOLID);
82 else
83 addType(Texture::DEFAULT_BEVEL);
82 84
83 if (strstr(ts, "raised")) 85 if (strstr(ts, "raised"))
84 addType(Texture::RAISED); 86 addType(Texture::RAISED);
85 else if (strstr(ts, "sunken")) 87 else if (strstr(ts, "sunken"))
86 addType(Texture::SUNKEN); 88 addType(Texture::SUNKEN);
87 else // default us "flat", according to ThemeItems.cc 89 else if (strstr(ts, "flat"))
88 addType(Texture::FLAT); 90 addType(Texture::FLAT);
91 else
92 addType(Texture::DEFAULT_TEXTURE);
89 93
90 if (! (type() & Texture::FLAT)) 94 if (! (type() & Texture::FLAT))
91 if (strstr(ts, "bevel2")) 95 if (strstr(ts, "bevel2"))