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
b270384d
Commit
b270384d
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_GetPixelSize().
parent
b7fae529
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
bitmap.c
dlls/d2d1/bitmap.c
+6
-3
d2d1_private.h
dlls/d2d1/d2d1_private.h
+2
-0
No files found.
dlls/d2d1/bitmap.c
View file @
b270384d
...
...
@@ -88,10 +88,11 @@ static D2D1_SIZE_F * STDMETHODCALLTYPE d2d_bitmap_GetSize(ID2D1Bitmap *iface, D2
static
D2D1_SIZE_U
*
STDMETHODCALLTYPE
d2d_bitmap_GetPixelSize
(
ID2D1Bitmap
*
iface
,
D2D1_SIZE_U
*
pixel_size
)
{
FIXME
(
"iface %p, pixel_size %p stub!
\n
"
,
iface
,
pixel_size
);
struct
d2d_bitmap
*
bitmap
=
impl_from_ID2D1Bitmap
(
iface
);
TRACE
(
"iface %p, pixel_size %p.
\n
"
,
iface
,
pixel_size
);
pixel_size
->
width
=
0
;
pixel_size
->
height
=
0
;
*
pixel_size
=
bitmap
->
pixel_size
;
return
pixel_size
;
}
...
...
@@ -158,4 +159,6 @@ void d2d_bitmap_init(struct d2d_bitmap *bitmap, D2D1_SIZE_U size, const void *sr
bitmap
->
ID2D1Bitmap_iface
.
lpVtbl
=
&
d2d_bitmap_vtbl
;
bitmap
->
refcount
=
1
;
bitmap
->
pixel_size
=
size
;
}
dlls/d2d1/d2d1_private.h
View file @
b270384d
...
...
@@ -152,6 +152,8 @@ struct d2d_bitmap
{
ID2D1Bitmap
ID2D1Bitmap_iface
;
LONG
refcount
;
D2D1_SIZE_U
pixel_size
;
};
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