Nikolay Sivov : dwrite: Handle zero specified weight as normal.
Alexandre Julliard
julliard at winehq.org
Mon Aug 15 10:37:29 CDT 2016
Module: wine
Branch: master
Commit: 52bbc64a67d778fefe9ec9c6db3240625ae9b472
URL: http://source.winehq.org/git/wine.git/?a=commit;h=52bbc64a67d778fefe9ec9c6db3240625ae9b472
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sat Aug 13 22:21:15 2016 +0300
dwrite: Handle zero specified weight as normal.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dwrite/opentype.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c
index 7f4a208..b38b5a2 100644
--- a/dlls/dwrite/opentype.c
+++ b/dlls/dwrite/opentype.c
@@ -1301,7 +1301,7 @@ void opentype_get_font_properties(struct file_stream_desc *stream_desc, struct d
if (usWeightClass > DWRITE_FONT_WEIGHT_ULTRA_BLACK)
props->weight = DWRITE_FONT_WEIGHT_ULTRA_BLACK;
- else
+ else if (usWeightClass > 0)
props->weight = usWeightClass;
if (version >= 4 && (fsSelection & OS2_FSSELECTION_OBLIQUE))
More information about the wine-cvs
mailing list