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
c8f758a0
Commit
c8f758a0
authored
Sep 15, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement d2d_factory_CreateWicBitmapRenderTarget().
parent
81097744
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
66 additions
and
3 deletions
+66
-3
Makefile.in
dlls/d2d1/Makefile.in
+2
-1
d2d1_private.h
dlls/d2d1/d2d1_private.h
+18
-0
factory.c
dlls/d2d1/factory.c
+18
-2
wic_render_target.c
dlls/d2d1/wic_render_target.c
+0
-0
Makefile.in
include/Makefile.in
+1
-0
d2d1.idl
include/d2d1.idl
+1
-0
d2derr.h
include/d2derr.h
+26
-0
No files found.
dlls/d2d1/Makefile.in
View file @
c8f758a0
...
...
@@ -6,6 +6,7 @@ C_SRCS = \
brush.c
\
factory.c
\
render_target.c
\
stroke.c
stroke.c
\
wic_render_target.c
RC_SRCS
=
version.rc
dlls/d2d1/d2d1_private.h
View file @
c8f758a0
...
...
@@ -58,6 +58,24 @@ struct d2d_d3d_render_target
HRESULT
d2d_d3d_render_target_init
(
struct
d2d_d3d_render_target
*
render_target
,
ID2D1Factory
*
factory
,
IDXGISurface
*
surface
,
const
D2D1_RENDER_TARGET_PROPERTIES
*
desc
)
DECLSPEC_HIDDEN
;
struct
d2d_wic_render_target
{
ID2D1RenderTarget
ID2D1RenderTarget_iface
;
LONG
refcount
;
IDXGISurface
*
dxgi_surface
;
ID2D1RenderTarget
*
dxgi_target
;
ID3D10Texture2D
*
readback_texture
;
IWICBitmap
*
bitmap
;
unsigned
int
width
;
unsigned
int
height
;
unsigned
int
bpp
;
};
HRESULT
d2d_wic_render_target_init
(
struct
d2d_wic_render_target
*
render_target
,
ID2D1Factory
*
factory
,
IWICBitmap
*
bitmap
,
const
D2D1_RENDER_TARGET_PROPERTIES
*
desc
)
DECLSPEC_HIDDEN
;
struct
d2d_gradient
{
ID2D1GradientStopCollection
ID2D1GradientStopCollection_iface
;
...
...
dlls/d2d1/factory.c
View file @
c8f758a0
...
...
@@ -173,9 +173,25 @@ static HRESULT STDMETHODCALLTYPE d2d_factory_CreateDrawingStateBlock(ID2D1Factor
static
HRESULT
STDMETHODCALLTYPE
d2d_factory_CreateWicBitmapRenderTarget
(
ID2D1Factory
*
iface
,
IWICBitmap
*
target
,
const
D2D1_RENDER_TARGET_PROPERTIES
*
desc
,
ID2D1RenderTarget
**
render_target
)
{
FIXME
(
"iface %p, target %p, desc %p, render_target %p stub!
\n
"
,
iface
,
target
,
desc
,
render_target
);
struct
d2d_wic_render_target
*
object
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"iface %p, target %p, desc %p, render_target %p.
\n
"
,
iface
,
target
,
desc
,
render_target
);
if
(
!
(
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
))))
return
E_OUTOFMEMORY
;
if
(
FAILED
(
hr
=
d2d_wic_render_target_init
(
object
,
iface
,
target
,
desc
)))
{
WARN
(
"Failed to initialize render target, hr %#x.
\n
"
,
hr
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
return
hr
;
}
TRACE
(
"Created render target %p.
\n
"
,
object
);
*
render_target
=
&
object
->
ID2D1RenderTarget_iface
;
return
S_OK
;
}
static
HRESULT
STDMETHODCALLTYPE
d2d_factory_CreateHwndRenderTarget
(
ID2D1Factory
*
iface
,
...
...
dlls/d2d1/wic_render_target.c
0 → 100644
View file @
c8f758a0
This diff is collapsed.
Click to expand it.
include/Makefile.in
View file @
c8f758a0
...
...
@@ -196,6 +196,7 @@ SRCDIR_INCLUDES = \
custcntl.h
\
cvconst.h
\
d2dbasetypes.h
\
d2derr.h
\
d3d.h
\
d3d10_1shader.h
\
d3d10effect.h
\
...
...
include/d2d1.idl
View file @
c8f758a0
...
...
@@ -20,6 +20,7 @@ import "unknwn.idl";
import
"dcommon.h"
;
import
"d2dbasetypes.h"
;
import
"d3d10_1.idl"
;
import
"d2derr.h"
;
cpp_quote
(
"#ifdef WINE_NO_UNICODE_MACROS"
)
cpp_quote
(
"#undef DrawText"
)
...
...
include/d2derr.h
0 → 100644
View file @
c8f758a0
/*
* Copyright 2014 Henri Verbeet for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_D2DERR_H
#define __WINE_D2DERR_H
#define D2DERR_FILE_NOT_FOUND HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)
#define D2DERR_INSUFFICIENT_BUFFER HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER)
#define D2DERR_UNSUPPORTED_PIXEL_FORMAT WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT
#endif
/* __WINE_D2DERR_H */
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