dwrite: Fix compilation failure regarding nameless unions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
43b3f844ba
commit
af54ed51b0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue