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
4bca12c0
Commit
4bca12c0
authored
Nov 15, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Slightly simplify write_path_types.
parent
db521d5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
region.c
dlls/gdiplus/region.c
+5
-4
No files found.
dlls/gdiplus/region.c
View file @
4bca12c0
...
...
@@ -702,14 +702,15 @@ static inline void write_packed_point(DWORD* location, INT* offset,
static
inline
void
write_path_types
(
DWORD
*
location
,
INT
*
offset
,
const
GpPath
*
path
)
{
INT
rounded_size
=
get_pathtypes_size
(
path
);
memcpy
(
location
+
*
offset
,
path
->
pathdata
.
Types
,
path
->
pathdata
.
Count
);
/* The unwritten parts of the DWORD (if any) must be cleared */
if
(
path
->
pathdata
.
Count
%
sizeof
(
DWORD
)
)
if
(
rounded_size
-
path
->
pathdata
.
Count
)
ZeroMemory
(((
BYTE
*
)
location
)
+
(
*
offset
*
sizeof
(
DWORD
))
+
path
->
pathdata
.
Count
,
sizeof
(
DWORD
)
-
path
->
pathdata
.
Count
%
sizeof
(
DWORD
));
*
offset
+=
(
get_pathtypes_size
(
path
)
/
sizeof
(
DWORD
));
path
->
pathdata
.
Count
,
rounded_size
-
path
->
pathdata
.
Count
);
*
offset
+=
rounded_size
/
sizeof
(
DWORD
);
}
static
void
write_element
(
const
region_element
*
element
,
DWORD
*
buffer
,
...
...
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