dwrite: Remove some unused fields.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
94d7abce63
commit
98d88f22e2
|
@ -445,8 +445,6 @@ struct dwrite_glyphbitmap
|
|||
{
|
||||
DWORD simulations;
|
||||
float emsize;
|
||||
BOOL nohint;
|
||||
BOOL aliased;
|
||||
UINT16 glyph;
|
||||
INT pitch;
|
||||
RECT bbox;
|
||||
|
|
|
@ -5942,19 +5942,6 @@ static ULONG WINAPI glyphrunanalysis_Release(IDWriteGlyphRunAnalysis *iface)
|
|||
return refcount;
|
||||
}
|
||||
|
||||
static BOOL is_natural_rendering_mode(DWRITE_RENDERING_MODE1 mode)
|
||||
{
|
||||
switch (mode)
|
||||
{
|
||||
case DWRITE_RENDERING_MODE1_NATURAL:
|
||||
case DWRITE_RENDERING_MODE1_NATURAL_SYMMETRIC:
|
||||
case DWRITE_RENDERING_MODE1_NATURAL_SYMMETRIC_DOWNSAMPLED:
|
||||
return TRUE;
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
static void glyphrunanalysis_get_texturebounds(struct dwrite_glyphrunanalysis *analysis, RECT *bounds)
|
||||
{
|
||||
struct dwrite_glyphbitmap glyph_bitmap;
|
||||
|
@ -5971,7 +5958,6 @@ static void glyphrunanalysis_get_texturebounds(struct dwrite_glyphrunanalysis *a
|
|||
memset(&glyph_bitmap, 0, sizeof(glyph_bitmap));
|
||||
glyph_bitmap.simulations = IDWriteFontFace_GetSimulations(analysis->run.fontFace);
|
||||
glyph_bitmap.emsize = analysis->run.fontEmSize;
|
||||
glyph_bitmap.nohint = is_natural_rendering_mode(analysis->rendering_mode);
|
||||
if (analysis->flags & RUNANALYSIS_USE_TRANSFORM)
|
||||
glyph_bitmap.m = &analysis->m;
|
||||
|
||||
|
@ -6051,8 +6037,6 @@ static HRESULT glyphrunanalysis_render(struct dwrite_glyphrunanalysis *analysis)
|
|||
memset(&glyph_bitmap, 0, sizeof(glyph_bitmap));
|
||||
glyph_bitmap.simulations = fontface->simulations;
|
||||
glyph_bitmap.emsize = analysis->run.fontEmSize;
|
||||
glyph_bitmap.nohint = is_natural_rendering_mode(analysis->rendering_mode);
|
||||
glyph_bitmap.aliased = analysis->rendering_mode == DWRITE_RENDERING_MODE1_ALIASED;
|
||||
if (analysis->flags & RUNANALYSIS_USE_TRANSFORM)
|
||||
glyph_bitmap.m = &analysis->m;
|
||||
if (!(glyph_bitmap.buf = malloc(analysis->max_glyph_bitmap_size)))
|
||||
|
|
|
@ -3946,7 +3946,6 @@ static void layout_get_erun_bbox(struct dwrite_textlayout *layout, struct layout
|
|||
memset(&glyph_bitmap, 0, sizeof(glyph_bitmap));
|
||||
glyph_bitmap.simulations = IDWriteFontFace_GetSimulations(glyph_run.fontFace);
|
||||
glyph_bitmap.emsize = glyph_run.fontEmSize;
|
||||
glyph_bitmap.nohint = layout->measuringmode == DWRITE_MEASURING_MODE_NATURAL;
|
||||
|
||||
bbox = &glyph_bitmap.bbox;
|
||||
|
||||
|
|
Loading…
Reference in New Issue