mirror of
https://github.com/swaywm/sway.git
synced 2026-03-16 05:34:10 -04:00
Initialize surface height with 0 before drawing
This commit is contained in:
parent
8241bde588
commit
023e68a673
1 changed files with 1 additions and 0 deletions
|
|
@ -359,6 +359,7 @@ static void draw_menu_items(cairo_t *cairo, struct swaybar_dbusmenu_menu *menu,
|
||||||
*surface_y = 0;
|
*surface_y = 0;
|
||||||
*surface_x = 0;
|
*surface_x = 0;
|
||||||
*surface_width = 0;
|
*surface_width = 0;
|
||||||
|
*surface_height = 0;
|
||||||
bool is_icon_drawn = false;
|
bool is_icon_drawn = false;
|
||||||
int icon_size = 0;
|
int icon_size = 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue