Commit 5a33f86e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Remove unused functions.

parent 86c7f17f
...@@ -1394,14 +1394,6 @@ static HRESULT WINAPI dwritetextanalyzer_GetGdiCompatibleGlyphPlacements(IDWrite ...@@ -1394,14 +1394,6 @@ static HRESULT WINAPI dwritetextanalyzer_GetGdiCompatibleGlyphPlacements(IDWrite
return hr; return hr;
} }
static inline FLOAT get_cluster_advance(const FLOAT *advances, UINT32 start, UINT32 end)
{
FLOAT advance = 0.0f;
for (; start < end; start++)
advance += advances[start];
return advance;
}
static HRESULT apply_cluster_spacing(float leading_spacing, float trailing_spacing, float min_advance_width, static HRESULT apply_cluster_spacing(float leading_spacing, float trailing_spacing, float min_advance_width,
unsigned int start, unsigned int end, float const *advances, DWRITE_GLYPH_OFFSET const *offsets, unsigned int start, unsigned int end, float const *advances, DWRITE_GLYPH_OFFSET const *offsets,
DWRITE_SHAPING_GLYPH_PROPERTIES const *glyph_props, float *modified_advances, DWRITE_SHAPING_GLYPH_PROPERTIES const *glyph_props, float *modified_advances,
......
...@@ -5123,11 +5123,6 @@ static HRESULT WINAPI glyphrunanalysis_GetAlphaTextureBounds(IDWriteGlyphRunAnal ...@@ -5123,11 +5123,6 @@ static HRESULT WINAPI glyphrunanalysis_GetAlphaTextureBounds(IDWriteGlyphRunAnal
return S_OK; return S_OK;
} }
static inline int get_dib_stride( int width, int bpp )
{
return ((width * bpp + 31) >> 3) & ~3;
}
static inline BYTE *get_pixel_ptr(BYTE *ptr, DWRITE_TEXTURE_TYPE type, const RECT *runbounds, const RECT *bounds) static inline BYTE *get_pixel_ptr(BYTE *ptr, DWRITE_TEXTURE_TYPE type, const RECT *runbounds, const RECT *bounds)
{ {
if (type == DWRITE_TEXTURE_CLEARTYPE_3x1) if (type == DWRITE_TEXTURE_CLEARTYPE_3x1)
......
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