[PATCH] dwrite: Fix compilation failure regarding nameless unions
Nikolay Sivov
nsivov at codeweavers.com
Wed May 10 09:16:10 CDT 2017
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/dwrite/opentype.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c
index 5f2de239ef..a66500a73b 100644
--- a/dlls/dwrite/opentype.c
+++ b/dlls/dwrite/opentype.c
@@ -19,6 +19,7 @@
*/
#define COBJMACROS
+#define NONAMELESSUNION
#include "dwrite_private.h"
#include "winternl.h"
@@ -1900,10 +1901,10 @@ HRESULT opentype_get_cpal_entries(const void *cpal, UINT32 palette, UINT32 first
first_entry_index += GET_BE_WORD(header->colorRecordIndices[palette]);
for (i = 0; i < entry_count; i++) {
- entries[i].r = records[first_entry_index + i].red / 255.0f;
- entries[i].g = records[first_entry_index + i].green / 255.0f;
- entries[i].b = records[first_entry_index + i].blue / 255.0f;
- entries[i].a = records[first_entry_index + i].alpha / 255.0f;
+ entries[i].u1.r = records[first_entry_index + i].red / 255.0f;
+ entries[i].u2.g = records[first_entry_index + i].green / 255.0f;
+ entries[i].u3.b = records[first_entry_index + i].blue / 255.0f;
+ entries[i].u4.a = records[first_entry_index + i].alpha / 255.0f;
}
return S_OK;
--
2.11.0
More information about the wine-patches
mailing list