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
4b0f47cd
Commit
4b0f47cd
authored
Feb 06, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement d2d_bitmap_GetDpi().
parent
b270384d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
bitmap.c
dlls/d2d1/bitmap.c
+13
-3
d2d1_private.h
dlls/d2d1/d2d1_private.h
+2
-0
No files found.
dlls/d2d1/bitmap.c
View file @
4b0f47cd
...
...
@@ -107,10 +107,12 @@ static D2D1_PIXEL_FORMAT * STDMETHODCALLTYPE d2d_bitmap_GetPixelFormat(ID2D1Bitm
static
void
STDMETHODCALLTYPE
d2d_bitmap_GetDpi
(
ID2D1Bitmap
*
iface
,
float
*
dpi_x
,
float
*
dpi_y
)
{
FIXME
(
"iface %p, dpi_x %p, dpi_y %p stub!
\n
"
,
iface
,
dpi_x
,
dpi_y
);
struct
d2d_bitmap
*
bitmap
=
impl_from_ID2D1Bitmap
(
iface
);
TRACE
(
"iface %p, dpi_x %p, dpi_y %p.
\n
"
,
iface
,
dpi_x
,
dpi_y
);
*
dpi_x
=
96
.
0
f
;
*
dpi_y
=
96
.
0
f
;
*
dpi_x
=
bitmap
->
dpi_x
;
*
dpi_y
=
bitmap
->
dpi_y
;
}
static
HRESULT
STDMETHODCALLTYPE
d2d_bitmap_CopyFromBitmap
(
ID2D1Bitmap
*
iface
,
...
...
@@ -161,4 +163,12 @@ void d2d_bitmap_init(struct d2d_bitmap *bitmap, D2D1_SIZE_U size, const void *sr
bitmap
->
refcount
=
1
;
bitmap
->
pixel_size
=
size
;
bitmap
->
dpi_x
=
desc
->
dpiX
;
bitmap
->
dpi_y
=
desc
->
dpiY
;
if
(
bitmap
->
dpi_x
==
0
.
0
f
&&
bitmap
->
dpi_y
==
0
.
0
f
)
{
bitmap
->
dpi_x
=
96
.
0
f
;
bitmap
->
dpi_y
=
96
.
0
f
;
}
}
dlls/d2d1/d2d1_private.h
View file @
4b0f47cd
...
...
@@ -154,6 +154,8 @@ struct d2d_bitmap
LONG
refcount
;
D2D1_SIZE_U
pixel_size
;
float
dpi_x
;
float
dpi_y
;
};
void
d2d_bitmap_init
(
struct
d2d_bitmap
*
bitmap
,
D2D1_SIZE_U
size
,
const
void
*
src_data
,
...
...
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