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
142dc48a
Commit
142dc48a
authored
Oct 26, 2023
by
Jeff Smith
Committed by
Alexandre Julliard
Oct 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipResetPageTransform.
parent
73aed1b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
9 deletions
+18
-9
graphics.c
dlls/gdiplus/graphics.c
+18
-5
graphics.c
dlls/gdiplus/tests/graphics.c
+0
-4
No files found.
dlls/gdiplus/graphics.c
View file @
142dc48a
...
...
@@ -7536,14 +7536,27 @@ cleanup:
GpStatus
WINGDIPAPI
GdipResetPageTransform
(
GpGraphics
*
graphics
)
{
static
int
calls
;
GpStatus
stat
;
TRACE
(
"(%p)
stub
\n
"
,
graphics
);
TRACE
(
"(%p)
\n
"
,
graphics
);
if
(
!
(
calls
++
)
)
FIXME
(
"not implemented
\n
"
)
;
if
(
!
graphics
)
return
InvalidParameter
;
return
NotImplemented
;
if
(
graphics
->
busy
)
return
ObjectBusy
;
if
(
is_metafile_graphics
(
graphics
))
{
stat
=
METAFILE_SetPageTransform
((
GpMetafile
*
)
graphics
->
image
,
UnitDisplay
,
1
.
0
);
if
(
stat
!=
Ok
)
return
stat
;
}
graphics
->
scale
=
1
.
0
;
graphics
->
unit
=
UnitDisplay
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGraphicsSetAbort
(
GpGraphics
*
graphics
,
GdiplusAbort
*
pabort
)
...
...
dlls/gdiplus/tests/graphics.c
View file @
142dc48a
...
...
@@ -1829,7 +1829,6 @@ static void test_Get_Release_DC(void)
status
=
GdipResetClip
(
graphics
);
expect
(
ObjectBusy
,
status
);
status
=
GdipResetPageTransform
(
graphics
);
todo_wine
expect
(
ObjectBusy
,
status
);
status
=
GdipResetWorldTransform
(
graphics
);
expect
(
ObjectBusy
,
status
);
...
...
@@ -4139,15 +4138,12 @@ static void test_set_page_transform(void)
expect
(
Ok
,
status
);
expectf_
(
2
.
0
,
scale
,
0
);
status
=
GdipResetPageTransform
(
graphics
);
todo_wine
expect
(
Ok
,
status
);
status
=
GdipGetPageUnit
(
graphics
,
&
unit
);
expect
(
Ok
,
status
);
todo_wine
expect
(
UnitDisplay
,
unit
);
status
=
GdipGetPageScale
(
graphics
,
&
scale
);
expect
(
Ok
,
status
);
todo_wine
expectf_
(
1
.
0
,
scale
,
0
);
GdipDeleteGraphics
(
graphics
);
...
...
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