aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Basemenu.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Basemenu.cc b/src/Basemenu.cc
index 2c3cb22..d37a81e 100644
--- a/src/Basemenu.cc
+++ b/src/Basemenu.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Basemenu.cc,v 1.31 2002/10/13 22:37:14 fluxgen Exp $ 25// $Id: Basemenu.cc,v 1.32 2002/10/19 14:00:09 fluxgen Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -467,7 +467,7 @@ void Basemenu::redrawTitle() {
467 m_screen->getScreenNumber(), 467 m_screen->getScreenNumber(),
468 m_screen->getMenuStyle()->t_text_gc, // graphic context 468 m_screen->getMenuStyle()->t_text_gc, // graphic context
469 text, len, // text string with lenght 469 text, len, // text string with lenght
470 dx, m_screen->getMenuStyle()->titlefont.height() + menu.bevel_w/2); // position 470 dx, m_screen->getMenuStyle()->titlefont.ascent() + menu.bevel_w); // position
471 471
472 472
473} 473}
@@ -613,7 +613,7 @@ void Basemenu::drawItem(unsigned int index, bool highlight, bool clear,
613 if (text) { 613 if (text) {
614 text_w = m_screen->getMenuStyle()->framefont.textWidth(text, len); 614 text_w = m_screen->getMenuStyle()->framefont.textWidth(text, len);
615 615
616 text_y = item_y + menu.bevel_w/4 + m_screen->getMenuStyle()->framefont.height(); 616 text_y = item_y + menu.bevel_w/2 + m_screen->getMenuStyle()->framefont.ascent();
617 617
618 switch(m_screen->getMenuStyle()->framefont_justify) { 618 switch(m_screen->getMenuStyle()->framefont_justify) {
619 case DrawUtil::Font::LEFT: 619 case DrawUtil::Font::LEFT: