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
981db831
Commit
981db831
authored
May 22, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Create GDI-compatible target bitmap for GDI-compatible target usage.
parent
612020f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
device.c
dlls/d2d1/device.c
+2
-0
d2d1.c
dlls/d2d1/tests/d2d1.c
+0
-3
No files found.
dlls/d2d1/device.c
View file @
981db831
...
...
@@ -4456,6 +4456,8 @@ HRESULT d2d_d3d_create_render_target(ID2D1Device *device, IDXGISurface *surface,
{
bitmap_desc
.
pixelFormat
=
desc
->
pixelFormat
;
bitmap_desc
.
bitmapOptions
=
D2D1_BITMAP_OPTIONS_TARGET
|
D2D1_BITMAP_OPTIONS_CANNOT_DRAW
;
if
(
desc
->
usage
&
D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE
)
bitmap_desc
.
bitmapOptions
|=
D2D1_BITMAP_OPTIONS_GDI_COMPATIBLE
;
bitmap_desc
.
colorContext
=
NULL
;
if
(
FAILED
(
hr
=
ID2D1DeviceContext1_CreateBitmapFromDxgiSurface
(
&
object
->
ID2D1DeviceContext1_iface
,
...
...
dlls/d2d1/tests/d2d1.c
View file @
981db831
...
...
@@ -6453,10 +6453,7 @@ static void test_dxgi_surface_target_gdi_interop(BOOL d3d11)
desc
.
usage
=
D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE
;
hr
=
ID2D1Factory_CreateDxgiSurfaceRenderTarget
(
ctx
.
factory
,
surface
,
&
desc
,
&
rt
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
ID2D1RenderTarget_Release
(
rt
);
refcount
=
IDXGISurface_Release
(
surface
);
ok
(
!
refcount
,
"Unexpected refcount %lu.
\n
"
,
refcount
);
...
...
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