mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
dwrite: Explicitly cast DWRITE_FONT_STRETCH to float in init_font_prop_vec.
This commit is contained in:
parent
a71ec54df8
commit
e4ee1ffeb9
1 changed files with 1 additions and 1 deletions
|
@ -685,7 +685,7 @@ static void init_font_prop_vec(DWRITE_FONT_WEIGHT weight, DWRITE_FONT_STRETCH st
|
|||
struct dwrite_font_propvec *vec)
|
||||
{
|
||||
vec->stretch = ((INT32)stretch - DWRITE_FONT_STRETCH_NORMAL) * 11.0f;
|
||||
vec->style = style * 7.0f;
|
||||
vec->style = (float)style * 7.0f;
|
||||
vec->weight = ((INT32)weight - DWRITE_FONT_WEIGHT_NORMAL) / 100.0f * 5.0f;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue