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
b313680a
Commit
b313680a
authored
Apr 23, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Take scaling into account for the source offset in d2d_d3d_render_target_DrawBitmap().
parent
4b3ca58f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
render_target.c
dlls/d2d1/render_target.c
+2
-2
No files found.
dlls/d2d1/render_target.c
View file @
b313680a
...
...
@@ -779,10 +779,10 @@ static void STDMETHODCALLTYPE d2d_d3d_render_target_DrawBitmap(ID2D1RenderTarget
brush_desc
.
opacity
=
opacity
;
brush_desc
.
transform
.
_11
=
fabsf
((
d
.
right
-
d
.
left
)
/
(
s
.
right
-
s
.
left
));
brush_desc
.
transform
.
_21
=
0
.
0
f
;
brush_desc
.
transform
.
_31
=
min
(
d
.
left
,
d
.
right
)
-
min
(
s
.
left
,
s
.
right
);
brush_desc
.
transform
.
_31
=
min
(
d
.
left
,
d
.
right
)
-
min
(
s
.
left
,
s
.
right
)
*
brush_desc
.
transform
.
_11
;
brush_desc
.
transform
.
_12
=
0
.
0
f
;
brush_desc
.
transform
.
_22
=
fabsf
((
d
.
bottom
-
d
.
top
)
/
(
s
.
bottom
-
s
.
top
));
brush_desc
.
transform
.
_32
=
min
(
d
.
top
,
d
.
bottom
)
-
min
(
s
.
top
,
s
.
bottom
);
brush_desc
.
transform
.
_32
=
min
(
d
.
top
,
d
.
bottom
)
-
min
(
s
.
top
,
s
.
bottom
)
*
brush_desc
.
transform
.
_22
;
if
(
FAILED
(
hr
=
ID2D1RenderTarget_CreateBitmapBrush
(
iface
,
bitmap
,
&
bitmap_brush_desc
,
&
brush_desc
,
&
brush
)))
{
...
...
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