diff options
author | Jim Ramsay <i.am@jimramsay.com> | 2009-05-01 22:15:34 (GMT) |
---|---|---|
committer | Jim Ramsay <i.am@jimramsay.com> | 2009-05-01 22:15:34 (GMT) |
commit | 8c7f2ea10eadb76de4eb42d1b4c841171539db17 (patch) | |
tree | bcf79ecd06a138ac560d79324aa80bebd08677d4 /src/WinButton.cc | |
parent | dfa360e8905509e3e19db4279fc4066e52014676 (diff) | |
download | fluxbox_lack-8c7f2ea10eadb76de4eb42d1b4c841171539db17.zip fluxbox_lack-8c7f2ea10eadb76de4eb42d1b4c841171539db17.tar.bz2 |
Everything but Text
Managed 32-bit visuals for everything, but text is broken (menus, titlebars,
etc)
Diffstat (limited to 'src/WinButton.cc')
-rw-r--r-- | src/WinButton.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/WinButton.cc b/src/WinButton.cc index d64034e..d570758 100644 --- a/src/WinButton.cc +++ b/src/WinButton.cc | |||
@@ -284,11 +284,10 @@ void WinButton::update(FbTk::Subject *subj) { | |||
284 | // update the menu icon | 284 | // update the menu icon |
285 | if (m_type == MENUICON && !m_listen_to.empty()) { | 285 | if (m_type == MENUICON && !m_listen_to.empty()) { |
286 | 286 | ||
287 | Display* display = m_listen_to.fbWindow().display(); | ||
288 | int screen = m_listen_to.screen().screenNumber(); | 287 | int screen = m_listen_to.screen().screenNumber(); |
289 | if (m_listen_to.icon().pixmap().drawable() != None) { | 288 | if (m_listen_to.icon().pixmap().drawable() != None) { |
290 | m_icon_pixmap.copy(m_listen_to.icon().pixmap().drawable(), | 289 | m_icon_pixmap.copy(m_listen_to.icon().pixmap().drawable(), |
291 | DefaultDepth(display, screen), screen); | 290 | FbTk::App::instance()->defaultDepth(screen), screen); |
292 | m_icon_pixmap.scale(width() - 4, height() - 4); | 291 | m_icon_pixmap.scale(width() - 4, height() - 4); |
293 | } else | 292 | } else |
294 | m_icon_pixmap.release(); | 293 | m_icon_pixmap.release(); |