diff options
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 12 |
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) |