Module: wine Branch: master Commit: e4ee1ffeb9e5ef562de3883352c325e8cb2b0b1e URL: https://gitlab.winehq.org/wine/wine/-/commit/e4ee1ffeb9e5ef562de3883352c325e...
Author: Jacek Caban jacek@codeweavers.com Date: Thu Dec 7 00:43:01 2023 +0100
dwrite: Explicitly cast DWRITE_FONT_STRETCH to float in init_font_prop_vec.
---
dlls/dwrite/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dwrite/font.c b/dlls/dwrite/font.c index 6a3e49dcc58..2028440ca8e 100644 --- a/dlls/dwrite/font.c +++ b/dlls/dwrite/font.c @@ -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; }