aboutsummaryrefslogtreecommitdiff
path: root/src/ButtonTool.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2011-02-22 21:07:39 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2011-02-22 21:07:39 (GMT)
commitd11aa42ace928efc3dd1eebc8988b6bbbc005b2b (patch)
tree0574ed4eaa5092386d3cf5440c636ea586baaebe /src/ButtonTool.cc
parentb7e84104a695bb3628e482c4be93f6f516e46e7d (diff)
downloadfluxbox-d11aa42ace928efc3dd1eebc8988b6bbbc005b2b.zip
fluxbox-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/ButtonTool.cc')
-rw-r--r--src/ButtonTool.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ButtonTool.cc b/src/ButtonTool.cc
index 0e11733..ad54534 100644
--- a/src/ButtonTool.cc
+++ b/src/ButtonTool.cc
@@ -49,7 +49,7 @@ void ButtonTool::updateSizing() {
49 btn.setBorderWidth(theme()->border().width()); 49 btn.setBorderWidth(theme()->border().width());
50} 50}
51 51
52void ButtonTool::renderTheme(unsigned char alpha) { 52void ButtonTool::renderTheme(int alpha) {
53 FbTk::Button &btn = static_cast<FbTk::Button &>(window()); 53 FbTk::Button &btn = static_cast<FbTk::Button &>(window());
54 54
55 btn.setGC(static_cast<const ButtonTheme &>(*theme()).gc()); 55 btn.setGC(static_cast<const ButtonTheme &>(*theme()).gc());