aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-08-07 07:22:11 (GMT)
committermarkt <markt>2007-08-07 07:22:11 (GMT)
commit8c53e8861ed51f284545634b46150f0adeb567e2 (patch)
tree9708f865e960184ad44ff32b45b766537b30f977 /src/Toolbar.cc
parentd77de67332b95f5fec7a6a8de703b2a57c8d67aa (diff)
downloadfluxbox_pavel-8c53e8861ed51f284545634b46150f0adeb567e2.zip
fluxbox_pavel-8c53e8861ed51f284545634b46150f0adeb567e2.tar.bz2
rotate toolbar texture along with toolbar
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r--src/Toolbar.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 6552859..ad1a8e5 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -466,8 +466,16 @@ void Toolbar::reconfigure() {
466 m_window_pm = 0; 466 m_window_pm = 0;
467 frame.window.setBackgroundColor(theme().toolbar().color()); 467 frame.window.setBackgroundColor(theme().toolbar().color());
468 } else { 468 } else {
469 m_window_pm = screen().imageControl().renderImage(frame.window.width(), frame.window.height(), 469 FbTk::Orientation orient = FbTk::ROT0;
470 theme().toolbar()); 470 Toolbar::Placement where = *m_rc_placement;
471 if (where == LEFTCENTER || where == LEFTTOP || where == LEFTBOTTOM)
472 orient = FbTk::ROT270;
473 if (where == RIGHTCENTER || where == RIGHTTOP || where == RIGHTBOTTOM)
474 orient = FbTk::ROT90;
475
476 m_window_pm = screen().imageControl().renderImage(
477 frame.window.width(), frame.window.height(),
478 theme().toolbar(), orient);
471 frame.window.setBackgroundPixmap(m_window_pm); 479 frame.window.setBackgroundPixmap(m_window_pm);
472 } 480 }
473 if (tmp) 481 if (tmp)