aboutsummaryrefslogtreecommitdiff
path: root/src/Tab.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2001-12-29 11:39:34 (GMT)
committerfluxgen <fluxgen>2001-12-29 11:39:34 (GMT)
commita29e46aa9fa5f686d5ef8815df29f56ff6c04cca (patch)
treeb5365f6d4d522fcbe56f20564a9f3e4164c0e8e0 /src/Tab.cc
parentbc53e48abb2889e8fbaf99c52ca23d1fc354b9f3 (diff)
downloadfluxbox_pavel-a29e46aa9fa5f686d5ef8815df29f56ff6c04cca.zip
fluxbox_pavel-a29e46aa9fa5f686d5ef8815df29f56ff6c04cca.tar.bz2
Updated texture constants
Diffstat (limited to 'src/Tab.cc')
-rw-r--r--src/Tab.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Tab.cc b/src/Tab.cc
index 2acc081..f426c0e 100644
--- a/src/Tab.cc
+++ b/src/Tab.cc
@@ -165,9 +165,9 @@ void Tab::decorate() {
165 Pixmap tmp = m_focus_pm; 165 Pixmap tmp = m_focus_pm;
166 BTexture *texture = &(m_win->getScreen()->getWindowStyle()->tab.l_focus); 166 BTexture *texture = &(m_win->getScreen()->getWindowStyle()->tab.l_focus);
167 167
168 if (texture->getTexture() & BImage_ParentRelative ) { 168 if (texture->getTexture() & BImage::PARENTRELATIVE ) {
169 BTexture *pt = &(m_win->getScreen()->getWindowStyle()->tab.t_focus); 169 BTexture *pt = &(m_win->getScreen()->getWindowStyle()->tab.t_focus);
170 if (pt->getTexture() == (BImage_Flat | BImage_Solid)) { 170 if (pt->getTexture() == (BImage::FLAT | BImage::SOLID)) {
171 m_focus_pm = None; 171 m_focus_pm = None;
172 m_focus_pixel = pt->getColor()->getPixel(); 172 m_focus_pixel = pt->getColor()->getPixel();
173 } else 173 } else
@@ -176,7 +176,7 @@ void Tab::decorate() {
176 if (tmp) image_ctrl->removeImage(tmp); 176 if (tmp) image_ctrl->removeImage(tmp);
177 177
178 } else { 178 } else {
179 if (texture->getTexture() == (BImage_Flat | BImage_Solid)) { 179 if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) {
180 m_focus_pm = None; 180 m_focus_pm = None;
181 m_focus_pixel = texture->getColor()->getPixel(); 181 m_focus_pixel = texture->getColor()->getPixel();
182 } else 182 } else
@@ -188,16 +188,16 @@ void Tab::decorate() {
188 tmp = m_unfocus_pm; 188 tmp = m_unfocus_pm;
189 texture = &(m_win->getScreen()->getWindowStyle()->tab.l_unfocus); 189 texture = &(m_win->getScreen()->getWindowStyle()->tab.l_unfocus);
190 190
191 if (texture->getTexture() & BImage_ParentRelative ) { 191 if (texture->getTexture() & BImage::PARENTRELATIVE ) {
192 BTexture *pt = &(m_win->getScreen()->getWindowStyle()->tab.t_unfocus); 192 BTexture *pt = &(m_win->getScreen()->getWindowStyle()->tab.t_unfocus);
193 if (pt->getTexture() == (BImage_Flat | BImage_Solid)) { 193 if (pt->getTexture() == (BImage::FLAT | BImage::SOLID)) {
194 m_unfocus_pm = None; 194 m_unfocus_pm = None;
195 m_unfocus_pixel = pt->getColor()->getPixel(); 195 m_unfocus_pixel = pt->getColor()->getPixel();
196 } else 196 } else
197 m_unfocus_pm = 197 m_unfocus_pm =
198 image_ctrl->renderImage(m_size_w, m_size_h, pt); 198 image_ctrl->renderImage(m_size_w, m_size_h, pt);
199 } else { 199 } else {
200 if (texture->getTexture() == (BImage_Flat | BImage_Solid)) { 200 if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) {
201 m_unfocus_pm = None; 201 m_unfocus_pm = None;
202 m_unfocus_pixel = texture->getColor()->getPixel(); 202 m_unfocus_pixel = texture->getColor()->getPixel();
203 } else 203 } else