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
9af15023
Commit
9af15023
authored
May 29, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
May 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Convert and pass in 3 points, not 1 (Coverity).
parent
d2dd407e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
matrix.c
dlls/gdiplus/matrix.c
+7
-5
No files found.
dlls/gdiplus/matrix.c
View file @
9af15023
...
...
@@ -105,7 +105,8 @@ GpStatus WINGDIPAPI GdipCreateMatrix3I(GDIPCONST GpRect *rect, GDIPCONST GpPoint
GpMatrix
**
matrix
)
{
GpRectF
rectF
;
GpPointF
ptF
;
GpPointF
ptF
[
3
];
int
i
;
TRACE
(
"(%p, %p, %p)
\n
"
,
rect
,
pt
,
matrix
);
...
...
@@ -114,10 +115,11 @@ GpStatus WINGDIPAPI GdipCreateMatrix3I(GDIPCONST GpRect *rect, GDIPCONST GpPoint
rectF
.
Width
=
(
REAL
)
rect
->
Width
;
rectF
.
Height
=
(
REAL
)
rect
->
Height
;
ptF
.
X
=
(
REAL
)
pt
->
X
;
ptF
.
Y
=
(
REAL
)
pt
->
Y
;
return
GdipCreateMatrix3
(
&
rectF
,
&
ptF
,
matrix
);
for
(
i
=
0
;
i
<
3
;
i
++
)
{
ptF
[
i
].
X
=
(
REAL
)
pt
[
i
].
X
;
ptF
[
i
].
Y
=
(
REAL
)
pt
[
i
].
Y
;
}
return
GdipCreateMatrix3
(
&
rectF
,
ptF
,
matrix
);
}
GpStatus
WINGDIPAPI
GdipCloneMatrix
(
GpMatrix
*
matrix
,
GpMatrix
**
clone
)
...
...
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