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
def42026
Commit
def42026
authored
Jul 04, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Jul 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Slightly simplify result handling in PolyDraw.
parent
c208c3b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
painting.c
dlls/gdi32/painting.c
+5
-9
No files found.
dlls/gdi32/painting.c
View file @
def42026
...
@@ -823,7 +823,7 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes,
...
@@ -823,7 +823,7 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes,
DWORD
cCount
)
DWORD
cCount
)
{
{
DC
*
dc
;
DC
*
dc
;
BOOL
result
;
BOOL
result
=
FALSE
;
POINT
lastmove
;
POINT
lastmove
;
unsigned
int
i
;
unsigned
int
i
;
...
@@ -841,10 +841,8 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes,
...
@@ -841,10 +841,8 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes,
if
(
lpbTypes
[
i
]
!=
PT_MOVETO
&&
if
(
lpbTypes
[
i
]
!=
PT_MOVETO
&&
lpbTypes
[
i
]
&
PT_BEZIERTO
)
lpbTypes
[
i
]
&
PT_BEZIERTO
)
{
{
if
(
cCount
<
i
+
3
){
if
(
cCount
<
i
+
3
)
result
=
FALSE
;
goto
end
;
goto
end
;
}
else
else
i
+=
2
;
i
+=
2
;
}
}
...
@@ -869,10 +867,8 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes,
...
@@ -869,10 +867,8 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes,
PolyBezierTo
(
hdc
,
&
lppt
[
i
],
3
);
PolyBezierTo
(
hdc
,
&
lppt
[
i
],
3
);
i
+=
2
;
i
+=
2
;
}
}
else
{
else
result
=
FALSE
;
goto
end
;
goto
end
;
}
if
(
lpbTypes
[
i
]
&
PT_CLOSEFIGURE
)
if
(
lpbTypes
[
i
]
&
PT_CLOSEFIGURE
)
{
{
...
...
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