From 9f6832426387c3730bf2c9b6202db9eb8d159f42 Mon Sep 17 00:00:00 2001 From: bernie Date: Wed, 15 Feb 2006 09:10:51 +0000 Subject: [PATCH] Make title bold; Fix height when we have no menubar. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@511 38d2e660-2303-0410-9eaa-f027e97ec537 --- mware/menu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mware/menu.c b/mware/menu.c index b7705fc8..89d88930 100755 --- a/mware/menu.c +++ b/mware/menu.c @@ -16,6 +16,9 @@ /*#* *#* $Log$ + *#* Revision 1.2 2006/02/15 09:10:51 bernie + *#* Make title bold; Fix height when we have no menubar. + *#* *#* Revision 1.1 2006/02/10 12:29:36 bernie *#* Add menu system. *#* @@ -158,7 +161,7 @@ static void menu_layout( ypos = menu->startrow; if (title) - text_xprintf(menu->bitmap, ypos++, 0, TEXT_FILL, title); + text_xprintf(menu->bitmap, ypos++, 0, STYLEF_BOLD | TEXT_FILL, title); for ( cnt = 0, item = &menu->items[first_item]; @@ -307,7 +310,9 @@ iptr_t menu_handle(const struct Menu *menu) items_per_page = (menu->bitmap->height / menu->bitmap->font->height) - menu->startrow +#if CONFIG_MENU_MENUBAR - 1 /* menu bar labels */ +#endif - (menu->title ? 1 : 0); /* Selected item should be a visible entry */ -- 2.25.1