From 1b493c7fef07ed42e8d270800b7786aca1bd72d6 Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 7 Aug 2007 07:23:50 +0000 Subject: rotate toolbar texture along with toolbar --- src/Toolbar.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 4a174bd..c5eff60 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -470,8 +470,16 @@ void Toolbar::reconfigure() { m_window_pm = 0; frame.window.setBackgroundColor(theme().toolbar().color()); } else { - m_window_pm = screen().imageControl().renderImage(frame.window.width(), frame.window.height(), - theme().toolbar()); + FbTk::Orientation orient = FbTk::ROT0; + Toolbar::Placement where = *m_rc_placement; + if (where == LEFTCENTER || where == LEFTTOP || where == LEFTBOTTOM) + orient = FbTk::ROT270; + if (where == RIGHTCENTER || where == RIGHTTOP || where == RIGHTBOTTOM) + orient = FbTk::ROT90; + + m_window_pm = screen().imageControl().renderImage( + frame.window.width(), frame.window.height(), + theme().toolbar(), orient); frame.window.setBackgroundPixmap(m_window_pm); } if (tmp) -- cgit v0.11.2