mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
menu: don't include menu.border.width for menu title height
It was a cruft from my experiment of adding borders around titles. It even caused an integer overflow because theme->menu_border_width can be INT_MIN when menu_header_height is calculated.
This commit is contained in:
parent
45646c694f
commit
6b7157f046
1 changed files with 1 additions and 2 deletions
|
|
@ -1457,8 +1457,7 @@ post_processing(struct theme *theme)
|
|||
+ 2 * theme->menu_items_padding_y;
|
||||
|
||||
theme->menu_header_height = font_height(&rc.font_menuheader)
|
||||
+ 2 * theme->menu_items_padding_y
|
||||
+ 2 * theme->menu_border_width;
|
||||
+ 2 * theme->menu_items_padding_y;
|
||||
|
||||
theme->osd_window_switcher_item_height = font_height(&rc.font_osd)
|
||||
+ 2 * theme->osd_window_switcher_item_padding_y
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue