diff options
Diffstat (limited to 'src/WinButton.cc')
-rw-r--r-- | src/WinButton.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/WinButton.cc b/src/WinButton.cc index f690f93..cdfb8b5 100644 --- a/src/WinButton.cc +++ b/src/WinButton.cc | |||
@@ -321,15 +321,15 @@ void WinButton::update(FbTk::Subject *subj) { | |||
321 | 321 | ||
322 | Display* display = m_listen_to.fbWindow().display(); | 322 | Display* display = m_listen_to.fbWindow().display(); |
323 | int screen = m_listen_to.screen().screenNumber(); | 323 | int screen = m_listen_to.screen().screenNumber(); |
324 | if (m_listen_to.usePixmap()) { | 324 | if (m_listen_to.icon().pixmap().drawable() != None) { |
325 | m_icon_pixmap.copy(m_listen_to.iconPixmap().drawable(), | 325 | m_icon_pixmap.copy(m_listen_to.icon().pixmap().drawable(), |
326 | DefaultDepth(display, screen), screen); | 326 | DefaultDepth(display, screen), screen); |
327 | m_icon_pixmap.scale(width() - 4, height() - 4); | 327 | m_icon_pixmap.scale(width() - 4, height() - 4); |
328 | } else | 328 | } else |
329 | m_icon_pixmap.release(); | 329 | m_icon_pixmap.release(); |
330 | 330 | ||
331 | if (m_listen_to.useMask()) { | 331 | if (m_listen_to.icon().mask().drawable() != None) { |
332 | m_icon_mask.copy(m_listen_to.iconMask().drawable(), 0, 0); | 332 | m_icon_mask.copy(m_listen_to.icon().mask().drawable(), 0, 0); |
333 | m_icon_mask.scale(width() - 4, height() - 4); | 333 | m_icon_mask.scale(width() - 4, height() - 4); |
334 | } else | 334 | } else |
335 | m_icon_mask.release(); | 335 | m_icon_mask.release(); |