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
dfd1153f
Commit
dfd1153f
authored
Oct 10, 2005
by
Lionel Ulmer
Committed by
Alexandre Julliard
Oct 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- do not pass private data to the application but a copy of it
- add some more traces
parent
fd1d4b7c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
8 deletions
+30
-8
ddraw_main.c
dlls/ddraw/ddraw_main.c
+16
-8
ddraw_private.h
dlls/ddraw/ddraw_private.h
+1
-0
ddraw_utils.c
dlls/ddraw/ddraw_utils.c
+13
-0
No files found.
dlls/ddraw/ddraw_main.c
View file @
dfd1153f
...
...
@@ -874,18 +874,23 @@ Main_DirectDraw_EnumExistingSurfaces(IDirectDrawImpl *This, DWORD dwFlags,
||
(
nomatch
!=
Main_DirectDraw_DDSD_Match
(
lpDDSD2
,
&
surf
->
surface_desc
)))
{
LPDIRECTDRAWSURFACE7
surface
=
ICOM_INTERFACE
(
surf
,
IDirectDrawSurface7
)
;
LPDIRECTDRAWSURFACE7
isurf
=
ICOM_INTERFACE
(
surf
,
IDirectDrawSurface7
);
DDSURFACEDESC2
desc
;
/* BOGUS! Violates COM rules, but MSDN says so. */
IDirectDrawSurface7_AddRef
(
surface
);
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
);
if
(
callback
(
surface
,
&
surf
->
surface_desc
,
context
)
==
DDENUMRET_CANCEL
)
desc
=
surf
->
surface_desc
;
if
(
callback
(
isurf
,
&
desc
,
context
)
==
DDENUMRET_CANCEL
)
break
;
}
}
TRACE
(
" end of enumeration.
\n
"
);
return
DD_OK
;
}
...
...
@@ -921,7 +926,10 @@ Main_DirectDraw_EnumSurfaces(LPDIRECTDRAW7 iface, DWORD dwFlags,
IDirectDrawImpl
*
This
=
(
IDirectDrawImpl
*
)
iface
;
TRACE
(
"(%p)->(0x%lx, %p, %p, %p)
\n
"
,
iface
,
dwFlags
,
lpDDSD2
,
context
,
callback
);
if
(
TRACE_ON
(
ddraw
))
{
TRACE
(
" flags: "
);
DDRAW_dump_DDENUMSURFACES
(
dwFlags
);
}
if
(
callback
==
NULL
)
return
DDERR_INVALIDPARAMS
;
...
...
dlls/ddraw/ddraw_private.h
View file @
dfd1153f
...
...
@@ -415,6 +415,7 @@ extern void DDRAW_dump_cooperativelevel(DWORD cooplevel);
extern
void
DDRAW_dump_lockflag
(
DWORD
lockflag
);
extern
void
DDRAW_dump_DDCOLORKEY
(
const
DDCOLORKEY
*
in
);
extern
void
DDRAW_dump_DDCAPS
(
const
DDCAPS
*
lpcaps
);
extern
void
DDRAW_dump_DDENUMSURFACES
(
DWORD
flagmask
);
extern
void
DDRAW_dump_surface_to_disk
(
IDirectDrawSurfaceImpl
*
surface
,
FILE
*
f
,
int
scale
)
;
/* Used for generic dumping */
...
...
dlls/ddraw/ddraw_utils.c
View file @
dfd1153f
...
...
@@ -838,6 +838,19 @@ void DDRAW_dump_DDCAPS(const DDCAPS *lpcaps) {
DPRINTF
(
" - ddsCaps : "
);
DDRAW_dump_DDSCAPS2
(
&
lpcaps
->
ddsCaps
);
DPRINTF
(
"
\n
"
);
}
void
DDRAW_dump_DDENUMSURFACES
(
DWORD
flagmask
)
{
static
const
flag_info
flags
[]
=
{
FE
(
DDENUMSURFACES_ALL
),
FE
(
DDENUMSURFACES_MATCH
),
FE
(
DDENUMSURFACES_NOMATCH
),
FE
(
DDENUMSURFACES_CANBECREATED
),
FE
(
DDENUMSURFACES_DOESEXIST
)
};
DDRAW_dump_flags
(
flagmask
,
flags
,
sizeof
(
flags
)
/
sizeof
(
flags
[
0
]));
}
/* Debug function that can be helpful to debug various surface-related problems */
static
int
get_shift
(
DWORD
color_mask
)
{
int
shift
=
0
;
...
...
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