diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2011-02-22 21:07:39 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2011-02-22 21:07:39 (GMT) |
commit | d11aa42ace928efc3dd1eebc8988b6bbbc005b2b (patch) | |
tree | 0574ed4eaa5092386d3cf5440c636ea586baaebe /src/ToolTheme.hh | |
parent | b7e84104a695bb3628e482c4be93f6f516e46e7d (diff) | |
download | fluxbox_pavel-d11aa42ace928efc3dd1eebc8988b6bbbc005b2b.zip fluxbox_pavel-d11aa42ace928efc3dd1eebc8988b6bbbc005b2b.tar.bz2 |
bugfix: consistent use of 'int' for alpha values (#3187373)
WindowMenuAccessor returned strange alpha values if compiled
with 'g++ -Os'; unholy black magic happens if template<int> faces
functions returning only 'usigned char'.
Diffstat (limited to 'src/ToolTheme.hh')
-rw-r--r-- | src/ToolTheme.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ToolTheme.hh b/src/ToolTheme.hh index 9c34114..693aac6 100644 --- a/src/ToolTheme.hh +++ b/src/ToolTheme.hh | |||
@@ -41,8 +41,8 @@ public: | |||
41 | // textures | 41 | // textures |
42 | const FbTk::Texture &texture() const { return *m_texture; } | 42 | const FbTk::Texture &texture() const { return *m_texture; } |
43 | const FbTk::BorderTheme &border() const { return m_border; } | 43 | const FbTk::BorderTheme &border() const { return m_border; } |
44 | unsigned char alpha() const { return m_alpha; } | 44 | int alpha() const { return m_alpha; } |
45 | void setAlpha(unsigned char alpha) { m_alpha = alpha; } | 45 | void setAlpha(int alpha) { m_alpha = alpha; } |
46 | 46 | ||
47 | virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); } | 47 | virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); } |
48 | virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); } | 48 | virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); } |
@@ -56,7 +56,7 @@ protected: | |||
56 | private: | 56 | private: |
57 | FbTk::ThemeItem<FbTk::Texture> m_texture; | 57 | FbTk::ThemeItem<FbTk::Texture> m_texture; |
58 | FbTk::BorderTheme m_border; | 58 | FbTk::BorderTheme m_border; |
59 | unsigned char m_alpha; | 59 | int m_alpha; |
60 | }; | 60 | }; |
61 | 61 | ||
62 | #endif // TOOLTHEME_HH | 62 | #endif // TOOLTHEME_HH |