Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
af54ed51
Commit
af54ed51
authored
May 10, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Fix compilation failure regarding nameless unions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
43b3f844
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
opentype.c
dlls/dwrite/opentype.c
+5
-4
No files found.
dlls/dwrite/opentype.c
View file @
af54ed51
...
...
@@ -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
.
0
f
;
entries
[
i
].
g
=
records
[
first_entry_index
+
i
].
green
/
255
.
0
f
;
entries
[
i
].
b
=
records
[
first_entry_index
+
i
].
blue
/
255
.
0
f
;
entries
[
i
].
a
=
records
[
first_entry_index
+
i
].
alpha
/
255
.
0
f
;
entries
[
i
].
u1
.
r
=
records
[
first_entry_index
+
i
].
red
/
255
.
0
f
;
entries
[
i
].
u2
.
g
=
records
[
first_entry_index
+
i
].
green
/
255
.
0
f
;
entries
[
i
].
u3
.
b
=
records
[
first_entry_index
+
i
].
blue
/
255
.
0
f
;
entries
[
i
].
u4
.
a
=
records
[
first_entry_index
+
i
].
alpha
/
255
.
0
f
;
}
return
S_OK
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment