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
3b400cad
Commit
3b400cad
authored
Jul 21, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Fix the bitmap DPI scale for bitmap brushes.
parent
4c64c76c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
brush.c
dlls/d2d1/brush.c
+2
-2
No files found.
dlls/d2d1/brush.c
View file @
3b400cad
...
...
@@ -757,10 +757,10 @@ HRESULT d2d_brush_get_ps_cb(struct d2d_brush *brush, struct d2d_d3d_render_targe
/* Scale for bitmap size and dpi. */
b
=
brush
->
transform
;
dpi_scale
=
bitmap
->
pixel_size
.
width
*
(
bitmap
->
dpi_x
/
96
.
0
f
);
dpi_scale
=
bitmap
->
pixel_size
.
width
*
(
96
.
0
f
/
bitmap
->
dpi_x
);
b
.
_11
*=
dpi_scale
;
b
.
_21
*=
dpi_scale
;
dpi_scale
=
bitmap
->
pixel_size
.
height
*
(
bitmap
->
dpi_y
/
96
.
0
f
);
dpi_scale
=
bitmap
->
pixel_size
.
height
*
(
96
.
0
f
/
bitmap
->
dpi_y
);
b
.
_12
*=
dpi_scale
;
b
.
_22
*=
dpi_scale
;
...
...
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