Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
79edbebc
Commit
79edbebc
authored
Nov 11, 2003
by
Huw Davies
Committed by
Alexandre Julliard
Nov 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We need to set the WorldTransform to the identity before stroking or
filling the path. Fixed a memory leak.
parent
d7a9d4bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
path.c
graphics/path.c
+9
-2
No files found.
graphics/path.c
View file @
79edbebc
...
...
@@ -376,6 +376,10 @@ static BOOL PATH_FillPath(DC *dc, GdiPath *pPath)
SetMapMode
(
dc
->
hSelf
,
MM_TEXT
);
SetViewportOrgEx
(
dc
->
hSelf
,
0
,
0
,
NULL
);
SetWindowOrgEx
(
dc
->
hSelf
,
0
,
0
,
NULL
);
graphicsMode
=
GetGraphicsMode
(
dc
->
hSelf
);
SetGraphicsMode
(
dc
->
hSelf
,
GM_ADVANCED
);
ModifyWorldTransform
(
dc
->
hSelf
,
&
xform
,
MWT_IDENTITY
);
SetGraphicsMode
(
dc
->
hSelf
,
graphicsMode
);
/* Paint the region */
PaintRgn
(
dc
->
hSelf
,
hrgn
);
...
...
@@ -1120,7 +1124,7 @@ static BOOL PATH_FlattenPath(GdiPath *pPath)
}
newPath
.
state
=
PATH_Closed
;
PATH_AssignGdiPath
(
pPath
,
&
newPath
);
PATH_
Empty
Path
(
&
newPath
);
PATH_
DestroyGdi
Path
(
&
newPath
);
return
TRUE
;
}
...
...
@@ -1453,7 +1457,10 @@ static BOOL PATH_StrokePath(DC *dc, GdiPath *pPath)
SetMapMode
(
dc
->
hSelf
,
MM_TEXT
);
SetViewportOrgEx
(
dc
->
hSelf
,
0
,
0
,
NULL
);
SetWindowOrgEx
(
dc
->
hSelf
,
0
,
0
,
NULL
);
graphicsMode
=
GetGraphicsMode
(
dc
->
hSelf
);
SetGraphicsMode
(
dc
->
hSelf
,
GM_ADVANCED
);
ModifyWorldTransform
(
dc
->
hSelf
,
&
xform
,
MWT_IDENTITY
);
SetGraphicsMode
(
dc
->
hSelf
,
graphicsMode
);
for
(
i
=
0
;
i
<
pPath
->
numEntriesUsed
;
i
++
)
{
switch
(
pPath
->
pFlags
[
i
])
{
...
...
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