dwrite/tests: Fix layout test failure on Win10

Nikolay Sivov nsivov at codeweavers.com
Thu Aug 20 12:33:29 CDT 2015


---
-------------- next part --------------
From 665a8ab1c380f04043190b7a79dee08ad04b73f8 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Thu, 20 Aug 2015 17:47:04 +0300
Subject: [PATCH 1/2] dwrite/tests: Fix layout test failure on Win10

---
 dlls/dwrite/tests/layout.c | 2 +-
 include/dwrite.idl         | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/dwrite/tests/layout.c b/dlls/dwrite/tests/layout.c
index 9e2aaea..67d49d1 100644
--- a/dlls/dwrite/tests/layout.c
+++ b/dlls/dwrite/tests/layout.c
@@ -975,7 +975,7 @@ if (0) /* crashes on native */
     hr = IDWriteTextFormat_SetLineSpacing(format, DWRITE_LINE_SPACING_METHOD_DEFAULT, -10.0, 0.0);
     ok(hr == E_INVALIDARG, "got 0x%08x\n", hr);
 
-    hr = IDWriteTextFormat_SetLineSpacing(format, DWRITE_LINE_SPACING_METHOD_UNIFORM+1, 0.0, 0.0);
+    hr = IDWriteTextFormat_SetLineSpacing(format, DWRITE_LINE_SPACING_METHOD_PROPORTIONAL+1, 0.0, 0.0);
     ok(hr == E_INVALIDARG, "got 0x%08x\n", hr);
 
     hr = IDWriteTextFormat_SetTrimming(format, &trimming, NULL);
diff --git a/include/dwrite.idl b/include/dwrite.idl
index bb41b4f..f8644ba 100644
--- a/include/dwrite.idl
+++ b/include/dwrite.idl
@@ -219,7 +219,8 @@ typedef enum DWRITE_BREAK_CONDITION
 typedef enum DWRITE_LINE_SPACING_METHOD
 {
     DWRITE_LINE_SPACING_METHOD_DEFAULT,
-    DWRITE_LINE_SPACING_METHOD_UNIFORM
+    DWRITE_LINE_SPACING_METHOD_UNIFORM,
+    DWRITE_LINE_SPACING_METHOD_PROPORTIONAL
 } DWRITE_LINE_SPACING_METHOD;
 
 cpp_quote("#define DWRITE_MAKE_OPENTYPE_TAG(a,b,c,d) ( \\")
-- 
2.1.4



More information about the wine-patches mailing list