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
b4d48c7f
Commit
b4d48c7f
authored
Apr 23, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Search for d3d primary a bit differently.
parent
67e2c97a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ddraw.c
dlls/ddraw/ddraw.c
+4
-3
No files found.
dlls/ddraw/ddraw.c
View file @
b4d48c7f
...
...
@@ -2341,7 +2341,8 @@ IDirectDrawImpl_CreateSurface(IDirectDraw7 *iface,
LIST_FOR_EACH
(
entry
,
&
This
->
surface_list
)
{
surface
=
LIST_ENTRY
(
entry
,
IDirectDrawSurfaceImpl
,
surface_list_entry
);
if
(
surface
->
surface_desc
.
ddsCaps
.
dwCaps
&
DDSCAPS_PRIMARYSURFACE
)
if
((
surface
->
surface_desc
.
ddsCaps
.
dwCaps
&
(
DDSCAPS_PRIMARYSURFACE
|
DDSCAPS_FRONTBUFFER
))
==
(
DDSCAPS_PRIMARYSURFACE
|
DDSCAPS_FRONTBUFFER
))
{
/* found */
target
=
surface
;
...
...
@@ -2351,7 +2352,7 @@ IDirectDrawImpl_CreateSurface(IDirectDraw7 *iface,
}
TRACE
(
"(%p) Attaching a D3DDevice, rendertarget = %p
\n
"
,
This
,
target
);
hr
=
IDirectDrawImpl_AttachD3DDevice
(
This
,
target
->
first_complex
);
hr
=
IDirectDrawImpl_AttachD3DDevice
(
This
,
target
);
if
(
hr
!=
D3D_OK
)
{
ERR
(
"IDirectDrawImpl_AttachD3DDevice failed, hr = %x
\n
"
,
hr
);
...
...
@@ -2636,7 +2637,7 @@ D3D7CB_CreateRenderTarget(IUnknown *device, IUnknown *pSuperior,
HANDLE
*
pSharedHandle
)
{
ICOM_THIS_FROM
(
IDirectDrawImpl
,
IDirectDraw7
,
device
);
IDirectDrawSurfaceImpl
*
d3dSurface
=
This
->
d3d_target
->
first_complex
,
*
target
=
NULL
;
IDirectDrawSurfaceImpl
*
d3dSurface
=
This
->
d3d_target
,
*
target
=
NULL
;
TRACE
(
"(%p) call back
\n
"
,
device
);
if
(
d3dSurface
->
isRenderTarget
)
...
...
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