diff options
Diffstat (limited to 'src/ButtonTool.cc')
-rw-r--r-- | src/ButtonTool.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ButtonTool.cc b/src/ButtonTool.cc index 6560715..d865681 100644 --- a/src/ButtonTool.cc +++ b/src/ButtonTool.cc | |||
@@ -67,7 +67,7 @@ void ButtonTool::renderTheme(unsigned char alpha) { | |||
67 | btn.setBackgroundColor(theme().texture().color()); | 67 | btn.setBackgroundColor(theme().texture().color()); |
68 | } else { | 68 | } else { |
69 | m_cache_pm = m_image_ctrl.renderImage(width(), height(), | 69 | m_cache_pm = m_image_ctrl.renderImage(width(), height(), |
70 | theme().texture()); | 70 | theme().texture(), orientation()); |
71 | btn.setBackgroundPixmap(m_cache_pm); | 71 | btn.setBackgroundPixmap(m_cache_pm); |
72 | } | 72 | } |
73 | if (old_pm) | 73 | if (old_pm) |
@@ -79,7 +79,7 @@ void ButtonTool::renderTheme(unsigned char alpha) { | |||
79 | btn.setPressedColor(static_cast<const ButtonTheme &>(theme()).pressed().color()); | 79 | btn.setPressedColor(static_cast<const ButtonTheme &>(theme()).pressed().color()); |
80 | } else { | 80 | } else { |
81 | m_cache_pressed_pm = m_image_ctrl.renderImage(width(), height(), | 81 | m_cache_pressed_pm = m_image_ctrl.renderImage(width(), height(), |
82 | static_cast<const ButtonTheme &>(theme()).pressed()); | 82 | static_cast<const ButtonTheme &>(theme()).pressed(), orientation()); |
83 | btn.setPressedPixmap(m_cache_pressed_pm); | 83 | btn.setPressedPixmap(m_cache_pressed_pm); |
84 | } | 84 | } |
85 | 85 | ||