Commit af54ed51 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Fix compilation failure regarding nameless unions.

parent 43b3f844
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#define COBJMACROS #define COBJMACROS
#define NONAMELESSUNION
#include "dwrite_private.h" #include "dwrite_private.h"
#include "winternl.h" #include "winternl.h"
...@@ -1900,10 +1901,10 @@ HRESULT opentype_get_cpal_entries(const void *cpal, UINT32 palette, UINT32 first ...@@ -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]); first_entry_index += GET_BE_WORD(header->colorRecordIndices[palette]);
for (i = 0; i < entry_count; i++) { for (i = 0; i < entry_count; i++) {
entries[i].r = records[first_entry_index + i].red / 255.0f; entries[i].u1.r = records[first_entry_index + i].red / 255.0f;
entries[i].g = records[first_entry_index + i].green / 255.0f; entries[i].u2.g = records[first_entry_index + i].green / 255.0f;
entries[i].b = records[first_entry_index + i].blue / 255.0f; entries[i].u3.b = records[first_entry_index + i].blue / 255.0f;
entries[i].a = records[first_entry_index + i].alpha / 255.0f; entries[i].u4.a = records[first_entry_index + i].alpha / 255.0f;
} }
return S_OK; return S_OK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment