Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
938d42c1
Commit
938d42c1
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: When there is no target rectangle specified DrawImage should scale image to device dpi.
parent
7f1cb3bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
graphics.c
dlls/gdiplus/graphics.c
+2
-0
image.c
dlls/gdiplus/tests/image.c
+0
-2
No files found.
dlls/gdiplus/graphics.c
View file @
938d42c1
...
...
@@ -2974,7 +2974,9 @@ GpStatus WINGDIPAPI GdipDrawImagePointRect(GpGraphics *graphics, GpImage *image,
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_x
*=
graphics
->
xres
/
image
->
xres
;
scale_y
=
units_scale
(
srcUnit
,
graphics
->
unit
,
graphics
->
yres
);
scale_y
*=
graphics
->
yres
/
image
->
yres
;
width
=
srcwidth
*
scale_x
;
height
=
srcheight
*
scale_y
;
...
...
dlls/gdiplus/tests/image.c
View file @
938d42c1
...
...
@@ -3642,7 +3642,6 @@ static void test_DrawImage(void)
expect
(
Ok
,
status
);
match
=
memcmp
(
white_2x2
,
black_2x2
,
sizeof
(
black_2x2
))
==
0
;
todo_wine
ok
(
match
,
"data should match
\n
"
);
if
(
!
match
)
{
...
...
@@ -3695,7 +3694,6 @@ static void test_GdipDrawImagePointRect(void)
expect
(
Ok
,
status
);
match
=
memcmp
(
white_2x2
,
black_2x2
,
sizeof
(
black_2x2
))
==
0
;
todo_wine
ok
(
match
,
"data should match
\n
"
);
if
(
!
match
)
{
...
...
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