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
ef735703
Commit
ef735703
authored
Oct 10, 2005
by
Lionel Ulmer
Committed by
Alexandre Julliard
Oct 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- pass a copy of the surface description to the application
- increase the surface reference count when giving the surface pointer to the caller
parent
b6dd5de0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
surface_main.c
dlls/ddraw/surface_main.c
+14
-3
No files found.
dlls/ddraw/surface_main.c
View file @
ef735703
...
...
@@ -459,17 +459,28 @@ Main_DirectDrawSurface_EnumAttachedSurfaces(LPDIRECTDRAWSURFACE7 iface,
{
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
IDirectDrawSurfaceImpl
*
surf
;
DDSURFACEDESC2
desc
;
TRACE
(
"(%p)->(%p,%p)
\n
"
,
This
,
context
,
cb
);
for
(
surf
=
This
->
attached
;
surf
!=
NULL
;
surf
=
surf
->
next_attached
)
{
LPDIRECTDRAWSURFACE7
isurf
=
ICOM_INTERFACE
(
surf
,
IDirectDrawSurface7
);
if
(
TRACE_ON
(
ddraw
))
{
TRACE
(
" => enumerating surface %p (priv. %p) with description:
\n
"
,
isurf
,
surf
);
DDRAW_dump_surface_desc
(
&
surf
->
surface_desc
);
}
IDirectDrawSurface7_AddRef
(
isurf
);
desc
=
surf
->
surface_desc
;
/* check: != DDENUMRET_OK or == DDENUMRET_CANCEL? */
if
(
cb
(
ICOM_INTERFACE
(
surf
,
IDirectDrawSurface7
),
&
surf
->
surface_desc
,
context
)
==
DDENUMRET_CANCEL
)
if
(
cb
(
isurf
,
&
desc
,
context
)
==
DDENUMRET_CANCEL
)
break
;
}
TRACE
(
" end of enumeration.
\n
"
);
return
DD_OK
;
}
...
...
@@ -1097,7 +1108,7 @@ Main_DirectDrawSurface_Lock(LPDIRECTDRAWSURFACE7 iface, LPRECT prect,
return
DDERR_INVALIDPARAMS
;
}
if
(
NULL
==
pDDSD
)
{
return
DDERR_INVALIDPARAMS
;
/** really ? */
return
DDERR_INVALIDPARAMS
;
}
/* If the surface is already locked, return busy */
...
...
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