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
a4bcae0b
Commit
a4bcae0b
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: Implement d2d_d3d_render_target_GetPixelFormat().
parent
3b400cad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
d2d1_private.h
dlls/d2d1/d2d1_private.h
+1
-0
render_target.c
dlls/d2d1/render_target.c
+5
-3
No files found.
dlls/d2d1/d2d1_private.h
View file @
a4bcae0b
...
...
@@ -79,6 +79,7 @@ struct d2d_d3d_render_target
D2D1_DRAWING_STATE_DESCRIPTION
drawing_state
;
IDWriteRenderingParams
*
text_rendering_params
;
D2D1_PIXEL_FORMAT
format
;
D2D1_SIZE_U
pixel_size
;
struct
d2d_clip_stack
clip_stack
;
float
dpi_x
;
...
...
dlls/d2d1/render_target.c
View file @
a4bcae0b
...
...
@@ -1182,10 +1182,11 @@ static HRESULT STDMETHODCALLTYPE d2d_d3d_render_target_EndDraw(ID2D1RenderTarget
static
D2D1_PIXEL_FORMAT
*
STDMETHODCALLTYPE
d2d_d3d_render_target_GetPixelFormat
(
ID2D1RenderTarget
*
iface
,
D2D1_PIXEL_FORMAT
*
format
)
{
FIXME
(
"iface %p, format %p stub!
\n
"
,
iface
,
format
);
struct
d2d_d3d_render_target
*
render_target
=
impl_from_ID2D1RenderTarget
(
iface
);
TRACE
(
"iface %p, format %p.
\n
"
,
iface
,
format
);
format
->
format
=
DXGI_FORMAT_UNKNOWN
;
format
->
alphaMode
=
D2D1_ALPHA_MODE_UNKNOWN
;
*
format
=
render_target
->
format
;
return
format
;
}
...
...
@@ -1784,6 +1785,7 @@ HRESULT d2d_d3d_render_target_init(struct d2d_d3d_render_target *render_target,
goto
err
;
}
render_target
->
format
=
desc
->
pixelFormat
;
render_target
->
pixel_size
.
width
=
surface_desc
.
Width
;
render_target
->
pixel_size
.
height
=
surface_desc
.
Height
;
render_target
->
drawing_state
.
transform
=
identity
;
...
...
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