Lines Matching refs:glyph
9 The inconsistency between "glyph" and "max_glyph_size" when grub_malloc()
34 static struct grub_font_glyph *glyph = 0;
44 - if (max_glyph_size < sizeof (*glyph) + (bounds.width * bounds.height + GRUB_CHAR_BIT - 1) / GRUB…
46 + grub_add (sizeof (*glyph), cur_glyph_size, &cur_glyph_size))
51 grub_free (glyph);
52 - max_glyph_size = (sizeof (*glyph) + (bounds.width * bounds.height + GRUB_CHAR_BIT - 1) / GRU…
55 - glyph = grub_malloc (max_glyph_size);
58 + glyph = max_glyph_size > 0 ? grub_malloc (max_glyph_size) : NULL;
60 if (!glyph)
67 - grub_memset (glyph, 0, sizeof (*glyph)
70 + grub_memset (glyph, 0, cur_glyph_size);
72 glyph->font = main_glyph->font;
73 - glyph->width = bounds.width;
74 - glyph->height = bounds.height;
75 - glyph->offset_x = bounds.x;
76 - glyph->offset_y = bounds.y;
78 + grub_cast (bounds.width, &glyph->width) ||
79 + grub_cast (bounds.height, &glyph->height) ||
80 + grub_cast (bounds.x, &glyph->offset_x) ||
81 + grub_cast (bounds.y, &glyph->offset_y))
85 grub_font_blit_glyph_mirror (glyph, main_glyph,