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
c374fe9b
Commit
c374fe9b
authored
Mar 31, 2012
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement path gradient transform setters.
parent
09b7aed7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
26 deletions
+28
-26
brush.c
dlls/gdiplus/brush.c
+27
-25
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
No files found.
dlls/gdiplus/brush.c
View file @
c374fe9b
...
@@ -1656,14 +1656,14 @@ GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient *grad,
...
@@ -1656,14 +1656,14 @@ GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient *grad,
GpStatus
WINGDIPAPI
GdipSetPathGradientTransform
(
GpPathGradient
*
grad
,
GpStatus
WINGDIPAPI
GdipSetPathGradientTransform
(
GpPathGradient
*
grad
,
GpMatrix
*
matrix
)
GpMatrix
*
matrix
)
{
{
static
int
calls
;
TRACE
(
"(%p,%p)
\n
"
,
grad
,
matrix
);
TRACE
(
"(%p,%p)
\n
"
,
grad
,
matrix
);
if
(
!
(
calls
++
)
)
if
(
!
grad
||
!
matrix
)
FIXME
(
"not implemented
\n
"
)
;
return
InvalidParameter
;
return
NotImplemented
;
memcpy
(
grad
->
transform
,
matrix
,
sizeof
(
GpMatrix
));
return
Ok
;
}
}
GpStatus
WINGDIPAPI
GdipGetPathGradientTransform
(
GpPathGradient
*
grad
,
GpStatus
WINGDIPAPI
GdipGetPathGradientTransform
(
GpPathGradient
*
grad
,
...
@@ -1682,53 +1682,55 @@ GpStatus WINGDIPAPI GdipGetPathGradientTransform(GpPathGradient *grad,
...
@@ -1682,53 +1682,55 @@ GpStatus WINGDIPAPI GdipGetPathGradientTransform(GpPathGradient *grad,
GpStatus
WINGDIPAPI
GdipMultiplyPathGradientTransform
(
GpPathGradient
*
grad
,
GpStatus
WINGDIPAPI
GdipMultiplyPathGradientTransform
(
GpPathGradient
*
grad
,
GDIPCONST
GpMatrix
*
matrix
,
GpMatrixOrder
order
)
GDIPCONST
GpMatrix
*
matrix
,
GpMatrixOrder
order
)
{
{
static
int
calls
;
TRACE
(
"(%p,%p,%i)
\n
"
,
grad
,
matrix
,
order
);
TRACE
(
"(%p,%p,%i)
\n
"
,
grad
,
matrix
,
order
);
if
(
!
(
calls
++
)
)
if
(
!
grad
)
FIXME
(
"not implemented
\n
"
)
;
return
InvalidParameter
;
return
NotImplemented
;
return
GdipMultiplyMatrix
(
grad
->
transform
,
matrix
,
order
);
}
GpStatus
WINGDIPAPI
GdipResetPathGradientTransform
(
GpPathGradient
*
grad
)
{
TRACE
(
"(%p)
\n
"
,
grad
);
if
(
!
grad
)
return
InvalidParameter
;
return
GdipSetMatrixElements
(
grad
->
transform
,
1
.
0
,
0
.
0
,
0
.
0
,
1
.
0
,
0
.
0
,
0
.
0
);
}
}
GpStatus
WINGDIPAPI
GdipRotatePathGradientTransform
(
GpPathGradient
*
grad
,
GpStatus
WINGDIPAPI
GdipRotatePathGradientTransform
(
GpPathGradient
*
grad
,
REAL
angle
,
GpMatrixOrder
order
)
REAL
angle
,
GpMatrixOrder
order
)
{
{
static
int
calls
;
TRACE
(
"(%p,%0.2f,%i)
\n
"
,
grad
,
angle
,
order
);
TRACE
(
"(%p,%0.2f,%i)
\n
"
,
grad
,
angle
,
order
);
if
(
!
(
calls
++
)
)
if
(
!
grad
)
FIXME
(
"not implemented
\n
"
)
;
return
InvalidParameter
;
return
NotImplemented
;
return
GdipRotateMatrix
(
grad
->
transform
,
angle
,
order
)
;
}
}
GpStatus
WINGDIPAPI
GdipScalePathGradientTransform
(
GpPathGradient
*
grad
,
GpStatus
WINGDIPAPI
GdipScalePathGradientTransform
(
GpPathGradient
*
grad
,
REAL
sx
,
REAL
sy
,
GpMatrixOrder
order
)
REAL
sx
,
REAL
sy
,
GpMatrixOrder
order
)
{
{
static
int
calls
;
TRACE
(
"(%p,%0.2f,%0.2f,%i)
\n
"
,
grad
,
sx
,
sy
,
order
);
TRACE
(
"(%p,%0.2f,%0.2f,%i)
\n
"
,
grad
,
sx
,
sy
,
order
);
if
(
!
(
calls
++
)
)
if
(
!
grad
)
FIXME
(
"not implemented
\n
"
)
;
return
InvalidParameter
;
return
NotImplemented
;
return
GdipScaleMatrix
(
grad
->
transform
,
sx
,
sy
,
order
)
;
}
}
GpStatus
WINGDIPAPI
GdipTranslatePathGradientTransform
(
GpPathGradient
*
grad
,
GpStatus
WINGDIPAPI
GdipTranslatePathGradientTransform
(
GpPathGradient
*
grad
,
REAL
dx
,
REAL
dy
,
GpMatrixOrder
order
)
REAL
dx
,
REAL
dy
,
GpMatrixOrder
order
)
{
{
static
int
calls
;
TRACE
(
"(%p,%0.2f,%0.2f,%i)
\n
"
,
grad
,
dx
,
dy
,
order
);
TRACE
(
"(%p,%0.2f,%0.2f,%i)
\n
"
,
grad
,
dx
,
dy
,
order
);
if
(
!
(
calls
++
)
)
if
(
!
grad
)
FIXME
(
"not implemented
\n
"
)
;
return
InvalidParameter
;
return
NotImplemented
;
return
GdipTranslateMatrix
(
grad
->
transform
,
dx
,
dy
,
order
)
;
}
}
GpStatus
WINGDIPAPI
GdipSetSolidFillColor
(
GpSolidFill
*
sf
,
ARGB
argb
)
GpStatus
WINGDIPAPI
GdipSetSolidFillColor
(
GpSolidFill
*
sf
,
ARGB
argb
)
...
...
dlls/gdiplus/gdiplus.spec
View file @
c374fe9b
...
@@ -459,7 +459,7 @@
...
@@ -459,7 +459,7 @@
459 stdcall GdipResetLineTransform(ptr)
459 stdcall GdipResetLineTransform(ptr)
460 stdcall GdipResetPageTransform(ptr)
460 stdcall GdipResetPageTransform(ptr)
461 stdcall GdipResetPath(ptr)
461 stdcall GdipResetPath(ptr)
462 st
ub GdipResetPathGradientTransform
462 st
dcall GdipResetPathGradientTransform(ptr)
463 stdcall GdipResetPenTransform(ptr)
463 stdcall GdipResetPenTransform(ptr)
464 stdcall GdipResetTextureTransform(ptr)
464 stdcall GdipResetTextureTransform(ptr)
465 stdcall GdipResetWorldTransform(ptr)
465 stdcall GdipResetWorldTransform(ptr)
...
...
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