diff options
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/MenuTheme.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/FbTk/MenuTheme.cc b/src/FbTk/MenuTheme.cc index 18861ab..4d04e17 100644 --- a/src/FbTk/MenuTheme.cc +++ b/src/FbTk/MenuTheme.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: MenuTheme.cc,v 1.18 2004/06/13 12:01:15 fluxgen Exp $ | 22 | // $Id: MenuTheme.cc,v 1.19 2004/08/29 12:33:55 rathnor Exp $ |
23 | 23 | ||
24 | #include "MenuTheme.hh" | 24 | #include "MenuTheme.hh" |
25 | 25 | ||
@@ -70,6 +70,10 @@ MenuTheme::MenuTheme(int screen_num): | |||
70 | m_real_title_height(*m_title_height), | 70 | m_real_title_height(*m_title_height), |
71 | m_real_item_height(*m_item_height) | 71 | m_real_item_height(*m_item_height) |
72 | { | 72 | { |
73 | m_real_item_height = std::max(*m_item_height, frameFont().height() + 2*bevelWidth()); | ||
74 | m_real_title_height = std::max(*m_title_height, | ||
75 | titleFont().height() + 2*bevelWidth()); | ||
76 | |||
73 | m_real_item_height = m_real_item_height == 0 ? 1 : m_real_item_height; | 77 | m_real_item_height = m_real_item_height == 0 ? 1 : m_real_item_height; |
74 | m_real_title_height = m_real_title_height == 0 ? 1 : m_real_title_height; | 78 | m_real_title_height = m_real_title_height == 0 ? 1 : m_real_title_height; |
75 | 79 | ||