Commit 5a4cb67d authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dwrite: Use SetRectEmpty() instead of memset().

parent 85f993ed
......@@ -4875,12 +4875,12 @@ static HRESULT WINAPI glyphrunanalysis_GetAlphaTextureBounds(IDWriteGlyphRunAnal
TRACE("(%p)->(%d %p)\n", This, type, bounds);
if ((UINT32)type > DWRITE_TEXTURE_CLEARTYPE_3x1) {
memset(bounds, 0, sizeof(*bounds));
SetRectEmpty(bounds);
return E_INVALIDARG;
}
if (type != This->texture_type) {
memset(bounds, 0, sizeof(*bounds));
SetRectEmpty(bounds);
return S_OK;
}
......
......@@ -986,12 +986,12 @@ INT32 freetype_get_kerning_pair_adjustment(IDWriteFontFace4 *fontface, UINT16 le
void freetype_get_glyph_bbox(struct dwrite_glyphbitmap *bitmap)
{
memset(&bitmap->bbox, 0, sizeof(bitmap->bbox));
SetRectEmpty(&bitmap->bbox);
}
void freetype_get_design_glyph_bbox(IDWriteFontFace4 *fontface, UINT16 unitsperEm, UINT16 glyph, RECT *bbox)
{
memset(bbox, 0, sizeof(*bbox));
SetRectEmpty(bbox);
}
BOOL freetype_get_glyph_bitmap(struct dwrite_glyphbitmap *bitmap)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment