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
7f1cb3bc
Commit
7f1cb3bc
authored
Aug 15, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Destination points passed to GdipDrawImagePointsRect should be in device units.
parent
5e7452ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
graphics.c
dlls/gdiplus/graphics.c
+9
-4
No files found.
dlls/gdiplus/graphics.c
View file @
7f1cb3bc
...
...
@@ -2969,14 +2969,19 @@ GpStatus WINGDIPAPI GdipDrawImagePointRect(GpGraphics *graphics, GpImage *image,
GpUnit
srcUnit
)
{
GpPointF
points
[
3
];
REAL
scale_x
,
scale_y
,
width
,
height
;
TRACE
(
"(%p, %p, %f, %f, %f, %f, %f, %f, %d)
\n
"
,
graphics
,
image
,
x
,
y
,
srcx
,
srcy
,
srcwidth
,
srcheight
,
srcUnit
);
scale_x
=
units_scale
(
srcUnit
,
graphics
->
unit
,
graphics
->
xres
);
scale_y
=
units_scale
(
srcUnit
,
graphics
->
unit
,
graphics
->
yres
);
width
=
srcwidth
*
scale_x
;
height
=
srcheight
*
scale_y
;
points
[
0
].
X
=
points
[
2
].
X
=
x
;
points
[
0
].
Y
=
points
[
1
].
Y
=
y
;
/* FIXME: convert image coordinates to Graphics coordinates? */
points
[
1
].
X
=
x
+
srcwidth
;
points
[
2
].
Y
=
y
+
srcheight
;
points
[
1
].
X
=
x
+
width
;
points
[
2
].
Y
=
y
+
height
;
return
GdipDrawImagePointsRect
(
graphics
,
image
,
points
,
3
,
srcx
,
srcy
,
srcwidth
,
srcheight
,
srcUnit
,
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