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
1ecef1c9
Commit
1ecef1c9
authored
Feb 08, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi: Remove StrokePath workaround for a DC transformation change bug.
parent
06a293ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
36 deletions
+0
-36
path.c
dlls/gdi/path.c
+0
-36
No files found.
dlls/gdi/path.c
View file @
1ecef1c9
...
...
@@ -1653,8 +1653,6 @@ static BOOL PATH_StrokePath(DC *dc, GdiPath *pPath)
SIZE
szViewportExt
,
szWindowExt
;
DWORD
mapMode
,
graphicsMode
;
XFORM
xform
;
HGDIOBJ
hOldPen
;
HPEN
hNewPen
;
BOOL
ret
=
TRUE
;
if
(
dc
->
funcs
->
pStrokePath
)
...
...
@@ -1662,36 +1660,6 @@ static BOOL PATH_StrokePath(DC *dc, GdiPath *pPath)
if
(
pPath
->
state
!=
PATH_Closed
)
return
FALSE
;
/* Convert pen properties from logical to device units for MWT_IDENTITY */
hOldPen
=
GetCurrentObject
(
dc
->
hSelf
,
OBJ_PEN
);
if
(
GetObjectType
(
hOldPen
)
==
OBJ_EXTPEN
)
{
EXTLOGPEN
elp
;
LOGBRUSH
lb
;
GetObjectW
(
hOldPen
,
sizeof
(
EXTLOGPEN
),
&
elp
);
if
(
elp
.
elpPenStyle
&
PS_GEOMETRIC
)
{
INTERNAL_WSTODS
(
dc
,
&
elp
.
elpWidth
);
if
(
elp
.
elpPenStyle
&
PS_USERSTYLE
)
for
(
i
=
0
;
i
<
elp
.
elpNumEntries
;
i
++
)
INTERNAL_WSTODS
(
dc
,
&
elp
.
elpStyleEntry
[
i
]);
}
lb
.
lbStyle
=
elp
.
elpBrushStyle
;
lb
.
lbColor
=
elp
.
elpColor
;
lb
.
lbHatch
=
elp
.
elpHatch
;
if
(
elp
.
elpPenStyle
&
PS_USERSTYLE
)
hNewPen
=
ExtCreatePen
(
elp
.
elpPenStyle
,
elp
.
elpWidth
,
&
lb
,
elp
.
elpNumEntries
,
elp
.
elpStyleEntry
);
else
hNewPen
=
ExtCreatePen
(
elp
.
elpPenStyle
,
elp
.
elpWidth
,
&
lb
,
0
,
NULL
);
}
else
/* OBJ_PEN */
{
LOGPEN
lp
;
GetObjectW
(
hOldPen
,
sizeof
(
LOGPEN
),
&
lp
);
if
(
lp
.
lopnWidth
.
x
>
0
)
INTERNAL_WSTODS
(
dc
,
(
DWORD
*
)
&
lp
.
lopnWidth
.
x
);
hNewPen
=
CreatePenIndirect
(
&
lp
);
}
SelectObject
(
dc
->
hSelf
,
hNewPen
);
/* Save the mapping mode info */
mapMode
=
GetMapMode
(
dc
->
hSelf
);
...
...
@@ -1808,10 +1776,6 @@ static BOOL PATH_StrokePath(DC *dc, GdiPath *pPath)
MoveToEx
(
dc
->
hSelf
,
pt
.
x
,
pt
.
y
,
NULL
);
}
/* Restore old pen */
DeleteObject
(
hNewPen
);
SelectObject
(
dc
->
hSelf
,
hOldPen
);
return
ret
;
}
...
...
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