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
edb764fa
Commit
edb764fa
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 GdipSetTextureTransform with tests.
parent
48b80725
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
brush.c
dlls/gdiplus/brush.c
+5
-3
brush.c
dlls/gdiplus/tests/brush.c
+14
-2
No files found.
dlls/gdiplus/brush.c
View file @
edb764fa
...
...
@@ -1095,16 +1095,18 @@ GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill *sf, ARGB argb)
return
Ok
;
}
/******************************************************************************
* GdipSetTextureTransform [GDIPLUS.@]
*/
GpStatus
WINGDIPAPI
GdipSetTextureTransform
(
GpTexture
*
texture
,
GDIPCONST
GpMatrix
*
matrix
)
{
static
int
calls
;
TRACE
(
"(%p, %p)
\n
"
,
texture
,
matrix
)
;
if
(
!
texture
||
!
matrix
)
return
InvalidParameter
;
if
(
!
(
calls
++
))
FIXME
(
"not implemented
\n
"
);
memcpy
(
texture
->
transform
,
matrix
,
sizeof
(
GpMatrix
));
return
Ok
;
}
...
...
dlls/gdiplus/tests/brush.c
View file @
edb764fa
...
...
@@ -176,7 +176,7 @@ static void test_transform(void)
GpGraphics
*
graphics
=
NULL
;
GpBitmap
*
bitmap
;
HDC
hdc
=
GetDC
(
0
);
GpMatrix
*
m
;
GpMatrix
*
m
,
*
m1
;
BOOL
res
;
status
=
GdipCreateMatrix2
(
2
.
0
,
0
.
0
,
0
.
0
,
0
.
0
,
0
.
0
,
0
.
0
,
&
m
);
...
...
@@ -196,16 +196,28 @@ static void test_transform(void)
status
=
GdipGetTextureTransform
(
texture
,
NULL
);
expect
(
InvalidParameter
,
status
);
/* default value - identity matrix */
/*
get
default value - identity matrix */
status
=
GdipGetTextureTransform
(
texture
,
m
);
expect
(
Ok
,
status
);
status
=
GdipIsMatrixIdentity
(
m
,
&
res
);
expect
(
Ok
,
status
);
expect
(
TRUE
,
res
);
/* set and get then */
status
=
GdipCreateMatrix2
(
2
.
0
,
0
.
0
,
0
.
0
,
2
.
0
,
0
.
0
,
0
.
0
,
&
m1
);
expect
(
Ok
,
status
);
status
=
GdipSetTextureTransform
(
texture
,
m1
);
expect
(
Ok
,
status
);
status
=
GdipGetTextureTransform
(
texture
,
m
);
expect
(
Ok
,
status
);
status
=
GdipIsMatrixEqual
(
m
,
m1
,
&
res
);
expect
(
Ok
,
status
);
expect
(
TRUE
,
res
);
status
=
GdipDeleteBrush
((
GpBrush
*
)
texture
);
expect
(
Ok
,
status
);
status
=
GdipDeleteMatrix
(
m1
);
expect
(
Ok
,
status
);
status
=
GdipDeleteMatrix
(
m
);
expect
(
Ok
,
status
);
status
=
GdipDisposeImage
((
GpImage
*
)
bitmap
);
...
...
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