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
8f7749aa
Commit
8f7749aa
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: Fix a GdipSetPageScale return status.
parent
142dc48a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
graphics.c
dlls/gdiplus/graphics.c
+4
-1
graphics.c
dlls/gdiplus/tests/graphics.c
+0
-1
No files found.
dlls/gdiplus/graphics.c
View file @
8f7749aa
...
...
@@ -6164,12 +6164,15 @@ GpStatus WINGDIPAPI GdipSetPageScale(GpGraphics *graphics, REAL scale)
TRACE
(
"(%p, %.2f)
\n
"
,
graphics
,
scale
);
if
(
!
graphics
||
(
scale
<=
0
.
0
)
)
if
(
!
graphics
)
return
InvalidParameter
;
if
(
graphics
->
busy
)
return
ObjectBusy
;
if
(
scale
<=
0
.
0
)
return
InvalidParameter
;
if
(
is_metafile_graphics
(
graphics
))
{
stat
=
METAFILE_SetPageTransform
((
GpMetafile
*
)
graphics
->
image
,
graphics
->
unit
,
scale
);
...
...
dlls/gdiplus/tests/graphics.c
View file @
8f7749aa
...
...
@@ -1847,7 +1847,6 @@ static void test_Get_Release_DC(void)
status
=
GdipSetPageScale
(
graphics
,
1
.
0
);
expect
(
ObjectBusy
,
status
);
status
=
GdipSetPageScale
(
graphics
,
0
.
0
);
todo_wine
expect
(
ObjectBusy
,
status
);
status
=
GdipSetPageUnit
(
graphics
,
UnitWorld
);
expect
(
ObjectBusy
,
status
);
...
...
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