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
1135543d
Commit
1135543d
authored
Aug 09, 2023
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Aug 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fix returned value of GdipDrawImagePointsRect according to native lib.
parent
90c2949b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
graphics.c
dlls/gdiplus/graphics.c
+6
-3
graphics.c
dlls/gdiplus/tests/graphics.c
+2
-0
No files found.
dlls/gdiplus/graphics.c
View file @
1135543d
...
...
@@ -3049,11 +3049,11 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
count
,
srcx
,
srcy
,
srcwidth
,
srcheight
,
srcUnit
,
imageAttributes
,
callback
,
callbackData
);
if
(
count
>
3
)
if
(
count
==
4
)
return
NotImplemented
;
if
(
!
graphics
||
!
image
||
!
points
||
count
!=
3
)
return
InvalidParameter
;
return
InvalidParameter
;
TRACE
(
"%s %s %s
\n
"
,
debugstr_pointf
(
&
points
[
0
]),
debugstr_pointf
(
&
points
[
1
]),
debugstr_pointf
(
&
points
[
2
]));
...
...
@@ -3421,7 +3421,10 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRectI(GpGraphics *graphics, GpImage *imag
srcx
,
srcy
,
srcwidth
,
srcheight
,
srcUnit
,
imageAttributes
,
callback
,
callbackData
);
if
(
!
points
||
count
!=
3
)
if
(
count
==
4
)
return
NotImplemented
;
if
(
!
points
||
count
!=
3
)
return
InvalidParameter
;
for
(
i
=
0
;
i
<
count
;
i
++
){
...
...
dlls/gdiplus/tests/graphics.c
View file @
1135543d
...
...
@@ -1341,6 +1341,8 @@ static void test_GdipDrawImagePointsRect(void)
ptf
[
3
].
Y
=
10
;
status
=
GdipDrawImagePointsRect
(
graphics
,
(
GpImage
*
)
bm
,
ptf
,
4
,
0
,
0
,
10
,
10
,
UnitPixel
,
NULL
,
NULL
,
NULL
);
expect
(
NotImplemented
,
status
);
status
=
GdipDrawImagePointsRect
(
graphics
,
(
GpImage
*
)
bm
,
ptf
,
5
,
0
,
0
,
10
,
10
,
UnitPixel
,
NULL
,
NULL
,
NULL
);
expect
(
InvalidParameter
,
status
);
status
=
GdipDrawImagePointsRect
(
graphics
,
(
GpImage
*
)
bm
,
ptf
,
2
,
0
,
0
,
10
,
10
,
UnitPixel
,
NULL
,
NULL
,
NULL
);
expect
(
InvalidParameter
,
status
);
status
=
GdipDrawImagePointsRect
(
graphics
,
(
GpImage
*
)
bm
,
ptf
,
3
,
0
,
0
,
10
,
10
,
UnitPixel
,
NULL
,
NULL
,
NULL
);
...
...
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