aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
diff options
context:
space:
mode:
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 4a174bd..c5eff60 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -470,8 +470,16 @@ void Toolbar::reconfigure() {
470 m_window_pm = 0; 470 m_window_pm = 0;
471 frame.window.setBackgroundColor(theme().toolbar().color()); 471 frame.window.setBackgroundColor(theme().toolbar().color());
472 } else { 472 } else {
473 m_window_pm = screen().imageControl().renderImage(frame.window.width(), frame.window.height(), 473 FbTk::Orientation orient = FbTk::ROT0;
474 theme().toolbar()); 474 Toolbar::Placement where = *m_rc_placement;
475 if (where == LEFTCENTER || where == LEFTTOP || where == LEFTBOTTOM)
476 orient = FbTk::ROT270;
477 if (where == RIGHTCENTER || where == RIGHTTOP || where == RIGHTBOTTOM)
478 orient = FbTk::ROT90;
479
480 m_window_pm = screen().imageControl().renderImage(
481 frame.window.width(), frame.window.height(),
482 theme().toolbar(), orient);
475 frame.window.setBackgroundPixmap(m_window_pm); 483 frame.window.setBackgroundPixmap(m_window_pm);
476 } 484 }
477 if (tmp) 485 if (tmp)