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
eb478be8
Commit
eb478be8
authored
Jul 19, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipRotateMatrix.
parent
47787479
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
1 deletion
+30
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
matrix.c
dlls/gdiplus/matrix.c
+28
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
eb478be8
...
...
@@ -466,7 +466,7 @@
@ stdcall GdipRestoreGraphics(ptr long)
@ stub GdipReversePath
@ stub GdipRotateLineTransform
@ st
ub GdipRotateMatrix
@ st
dcall GdipRotateMatrix(ptr long long)
@ stub GdipRotatePathGradientTransform
@ stub GdipRotatePenTransform
@ stub GdipRotateTextureTransform
...
...
dlls/gdiplus/matrix.c
View file @
eb478be8
...
...
@@ -17,6 +17,7 @@
*/
#include <stdarg.h>
#include <math.h>
#include "windef.h"
#include "winbase.h"
...
...
@@ -93,6 +94,33 @@ GpStatus WINGDIPAPI GdipMultiplyMatrix(GpMatrix *matrix, GpMatrix* matrix2,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipRotateMatrix
(
GpMatrix
*
matrix
,
REAL
angle
,
GpMatrixOrder
order
)
{
REAL
cos_theta
,
sin_theta
,
rotate
[
6
];
if
(
!
matrix
)
return
InvalidParameter
;
angle
=
deg2rad
(
angle
);
cos_theta
=
cos
(
angle
);
sin_theta
=
sin
(
angle
);
rotate
[
0
]
=
cos_theta
;
rotate
[
1
]
=
sin_theta
;
rotate
[
2
]
=
-
sin_theta
;
rotate
[
3
]
=
cos_theta
;
rotate
[
4
]
=
0
.
0
;
rotate
[
5
]
=
0
.
0
;
if
(
order
==
MatrixOrderAppend
)
matrix_multiply
(
matrix
->
matrix
,
rotate
,
matrix
->
matrix
);
else
matrix_multiply
(
rotate
,
matrix
->
matrix
,
matrix
->
matrix
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipScaleMatrix
(
GpMatrix
*
matrix
,
REAL
scaleX
,
REAL
scaleY
,
GpMatrixOrder
order
)
{
...
...
include/gdiplusflat.h
View file @
eb478be8
...
...
@@ -88,6 +88,7 @@ GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
GpStatus
WINGDIPAPI
GdipCreateMatrix2
(
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
GpMatrix
**
);
GpStatus
WINGDIPAPI
GdipDeleteMatrix
(
GpMatrix
*
);
GpStatus
WINGDIPAPI
GdipMultiplyMatrix
(
GpMatrix
*
,
GpMatrix
*
,
GpMatrixOrder
);
GpStatus
WINGDIPAPI
GdipRotateMatrix
(
GpMatrix
*
,
REAL
,
GpMatrixOrder
);
GpStatus
WINGDIPAPI
GdipScaleMatrix
(
GpMatrix
*
,
REAL
,
REAL
,
GpMatrixOrder
);
GpStatus
WINGDIPAPI
GdipTransformMatrixPoints
(
GpMatrix
*
,
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipTranslateMatrix
(
GpMatrix
*
,
REAL
,
REAL
,
GpMatrixOrder
);
...
...
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