all repos — fluxbox @ 28b84d6fc03587ffacfcc575323e9113ae172be3

custom fork of the fluxbox windowmanager

using ascent and descent again
fluxgen fluxgen
commit

28b84d6fc03587ffacfcc575323e9113ae172be3

parent

38253628c20a4ffcc9bc779f6988648ce0c46710

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/Basemenu.ccsrc/Basemenu.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Basemenu.cc,v 1.31 2002/10/13 22:37:14 fluxgen Exp $ +// $Id: Basemenu.cc,v 1.32 2002/10/19 14:00:09 fluxgen Exp $ //use GNU extensions #ifndef _GNU_SOURCE

@@ -467,7 +467,7 @@ menu.title, // drawable

m_screen->getScreenNumber(), m_screen->getMenuStyle()->t_text_gc, // graphic context text, len, // text string with lenght - dx, m_screen->getMenuStyle()->titlefont.height() + menu.bevel_w/2); // position + dx, m_screen->getMenuStyle()->titlefont.ascent() + menu.bevel_w); // position }

@@ -613,7 +613,7 @@

if (text) { text_w = m_screen->getMenuStyle()->framefont.textWidth(text, len); - text_y = item_y + menu.bevel_w/4 + m_screen->getMenuStyle()->framefont.height(); + text_y = item_y + menu.bevel_w/2 + m_screen->getMenuStyle()->framefont.ascent(); switch(m_screen->getMenuStyle()->framefont_justify) { case DrawUtil::Font::LEFT: