mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-07 14:18:36 +02:00
label-freetype: Initialize line dimensions to 0
Now that we can print the line dimensions, we should initialize them to zero.
This commit is contained in:
parent
84c2ca7c7f
commit
69c821494a
1 changed files with 2 additions and 0 deletions
|
|
@ -537,6 +537,8 @@ load_glyphs (ply_label_plugin_control_t *label,
|
|||
line_dimensions = alloca (sizeof(ply_rectangle_t));
|
||||
line_dimensions->x = label->area.x;
|
||||
line_dimensions->y = label->area.y;
|
||||
line_dimensions->width = 0;
|
||||
line_dimensions->height = 0;
|
||||
label->area.width = 0;
|
||||
label->area.height = 0;
|
||||
} else if (ply_array_get_size (label->dimensions_of_lines) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue