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
31847cf3
Commit
31847cf3
authored
Sep 25, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipResetTextureTransform.
parent
edb764fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletion
+23
-1
brush.c
dlls/gdiplus/brush.c
+13
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
brush.c
dlls/gdiplus/tests/brush.c
+8
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/brush.c
View file @
31847cf3
...
...
@@ -898,6 +898,19 @@ GpStatus WINGDIPAPI GdipGetTextureTransform(GpTexture *brush, GpMatrix *matrix)
return
Ok
;
}
/******************************************************************************
* GdipResetTextureTransform [GDIPLUS.@]
*/
GpStatus
WINGDIPAPI
GdipResetTextureTransform
(
GpTexture
*
brush
)
{
TRACE
(
"(%p)
\n
"
,
brush
);
if
(
!
brush
)
return
InvalidParameter
;
return
GdipSetMatrixElements
(
brush
->
transform
,
1
.
0
,
0
.
0
,
0
.
0
,
1
.
0
,
0
.
0
,
0
.
0
);
}
GpStatus
WINGDIPAPI
GdipSetLineBlend
(
GpLineGradient
*
brush
,
GDIPCONST
REAL
*
blend
,
GDIPCONST
REAL
*
positions
,
INT
count
)
{
...
...
dlls/gdiplus/gdiplus.spec
View file @
31847cf3
...
...
@@ -481,7 +481,7 @@
@ stdcall GdipResetPath(ptr)
@ stub GdipResetPathGradientTransform
@ stub GdipResetPenTransform
@ st
ub GdipResetTextureTransform
@ st
dcall GdipResetTextureTransform(ptr)
@ stdcall GdipResetWorldTransform(ptr)
@ stdcall GdipRestoreGraphics(ptr long)
@ stdcall GdipReversePath(ptr)
...
...
dlls/gdiplus/tests/brush.c
View file @
31847cf3
...
...
@@ -212,6 +212,14 @@ static void test_transform(void)
status
=
GdipIsMatrixEqual
(
m
,
m1
,
&
res
);
expect
(
Ok
,
status
);
expect
(
TRUE
,
res
);
/* reset */
status
=
GdipResetTextureTransform
(
texture
);
expect
(
Ok
,
status
);
status
=
GdipGetTextureTransform
(
texture
,
m
);
expect
(
Ok
,
status
);
status
=
GdipIsMatrixIdentity
(
m
,
&
res
);
expect
(
Ok
,
status
);
expect
(
TRUE
,
res
);
status
=
GdipDeleteBrush
((
GpBrush
*
)
texture
);
expect
(
Ok
,
status
);
...
...
include/gdiplusflat.h
View file @
31847cf3
...
...
@@ -248,6 +248,7 @@ GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient*,
GpStatus
WINGDIPAPI
GdipSetPathGradientWrapMode
(
GpPathGradient
*
,
GpWrapMode
);
GpStatus
WINGDIPAPI
GdipSetSolidFillColor
(
GpSolidFill
*
,
ARGB
);
GpStatus
WINGDIPAPI
GdipSetTextureTransform
(
GpTexture
*
,
GDIPCONST
GpMatrix
*
);
GpStatus
WINGDIPAPI
GdipResetTextureTransform
(
GpTexture
*
);
GpStatus
WINGDIPAPI
GdipTransformPoints
(
GpGraphics
*
,
GpCoordinateSpace
,
GpCoordinateSpace
,
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipTransformPointsI
(
GpGraphics
*
,
GpCoordinateSpace
,
GpCoordinateSpace
,
...
...
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