diff options
author | fluxgen <fluxgen> | 2004-07-05 09:40:08 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2004-07-05 09:40:08 (GMT) |
commit | df570bc9452b24e963c38591cfcb185eb70a8a38 (patch) | |
tree | 6c1fc747126955503fb569afd00c740648ba22fe /src/FbTk/MenuItem.cc | |
parent | a1e5cfa6f5153c358bbfef61484237d2141f77d8 (diff) | |
download | fluxbox-df570bc9452b24e963c38591cfcb185eb70a8a38.zip fluxbox-df570bc9452b24e963c38591cfcb185eb70a8a38.tar.bz2 |
fixed menutitle and menulables drawn to close to screen-bottom, patch from Mathias Gumz
Diffstat (limited to 'src/FbTk/MenuItem.cc')
-rw-r--r-- | src/FbTk/MenuItem.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/MenuItem.cc b/src/FbTk/MenuItem.cc index 0d5989f..be8555b 100644 --- a/src/FbTk/MenuItem.cc +++ b/src/FbTk/MenuItem.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: MenuItem.cc,v 1.3 2004/06/10 11:40:43 fluxgen Exp $ | 22 | // $Id: MenuItem.cc,v 1.4 2004/07/05 09:40:08 fluxgen Exp $ |
23 | 23 | ||
24 | #include "MenuItem.hh" | 24 | #include "MenuItem.hh" |
25 | #include "Command.hh" | 25 | #include "Command.hh" |
@@ -90,7 +90,7 @@ void MenuItem::draw(FbDrawable &draw, | |||
90 | 90 | ||
91 | int text_w = theme.frameFont().textWidth(label().c_str(), label().size()); | 91 | int text_w = theme.frameFont().textWidth(label().c_str(), label().size()); |
92 | 92 | ||
93 | text_y = y + theme.bevelWidth()/2 + theme.frameFont().ascent()/2 + height/2; | 93 | text_y = y - theme.bevelWidth()/2 + theme.frameFont().ascent()/2 + height/2; |
94 | 94 | ||
95 | switch(theme.frameFontJustify()) { | 95 | switch(theme.frameFontJustify()) { |
96 | case FbTk::LEFT: | 96 | case FbTk::LEFT: |