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
b103f7b6
Commit
b103f7b6
authored
Nov 11, 2002
by
Lionel Ulmer
Committed by
Alexandre Julliard
Nov 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proper logging of DDSCAPS / DDSCAPS2 structures.
parent
b6aad502
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
25 deletions
+52
-25
ddraw_private.h
dlls/ddraw/ddraw_private.h
+3
-1
main.c
dlls/ddraw/dsurface/main.c
+3
-3
helper.c
dlls/ddraw/helper.c
+46
-21
No files found.
dlls/ddraw/ddraw_private.h
View file @
b103f7b6
...
...
@@ -40,6 +40,7 @@
do { \
DWORD __size = (to)->dwSize; \
DWORD __copysize = __size; \
memset(to,0,__size); \
if ((from)->dwSize < __size) \
__copysize = (from)->dwSize; \
memcpy(to,from,__copysize); \
...
...
@@ -350,7 +351,8 @@ void DDRAW_Convert_DDDEVICEIDENTIFIER_2_To_1(const DDDEVICEIDENTIFIER2* pIn,
extern
void
DDRAW_dump_DDBLTFX
(
DWORD
flagmask
);
extern
void
DDRAW_dump_DDBLTFAST
(
DWORD
flagmask
);
extern
void
DDRAW_dump_DDBLT
(
DWORD
flagmask
);
extern
void
DDRAW_dump_DDSCAPS
(
const
DDSCAPS2
*
in
);
extern
void
DDRAW_dump_DDSCAPS
(
const
DDSCAPS
*
in
);
extern
void
DDRAW_dump_DDSCAPS2
(
const
DDSCAPS2
*
in
);
extern
void
DDRAW_dump_pixelformat_flag
(
DWORD
flagmask
);
extern
void
DDRAW_dump_paletteformat
(
DWORD
dwFlags
);
extern
void
DDRAW_dump_pixelformat
(
const
DDPIXELFORMAT
*
in
);
...
...
dlls/ddraw/dsurface/main.c
View file @
b103f7b6
...
...
@@ -600,7 +600,7 @@ Main_DirectDrawSurface_GetAttachedSurface(LPDIRECTDRAWSURFACE7 iface,
if
(
TRACE_ON
(
ddraw
))
{
TRACE
(
"(%p)->Looking for caps: %lx,%lx,%lx,%lx output: %p
\n
"
,
This
,
pCaps
->
dwCaps
,
pCaps
->
dwCaps2
,
pCaps
->
dwCaps3
,
pCaps
->
dwCaps4
,
ppSurface
);
DPRINTF
(
" Caps are : "
);
DDRAW_dump_DDSCAPS
(
pCaps
);
DPRINTF
(
"
\n
"
);
DPRINTF
(
" Caps are : "
);
DDRAW_dump_DDSCAPS
2
(
pCaps
);
DPRINTF
(
"
\n
"
);
}
our_caps
=
*
pCaps
;
...
...
@@ -611,7 +611,7 @@ Main_DirectDrawSurface_GetAttachedSurface(LPDIRECTDRAWSURFACE7 iface,
our_caps
.
dwCaps3
=
0
;
our_caps
.
dwCaps4
=
0
;
if
(
TRACE_ON
(
ddraw
))
{
DPRINTF
(
" Real caps are : "
);
DDRAW_dump_DDSCAPS
(
&
our_caps
);
DPRINTF
(
"
\n
"
);
DPRINTF
(
" Real caps are : "
);
DDRAW_dump_DDSCAPS
2
(
&
our_caps
);
DPRINTF
(
"
\n
"
);
}
}
...
...
@@ -623,7 +623,7 @@ Main_DirectDrawSurface_GetAttachedSurface(LPDIRECTDRAWSURFACE7 iface,
surf
->
surface_desc
.
ddsCaps
.
dwCaps2
,
surf
->
surface_desc
.
ddsCaps
.
dwCaps3
,
surf
->
surface_desc
.
ddsCaps
.
dwCaps4
);
DPRINTF
(
" Surface caps are : "
);
DDRAW_dump_DDSCAPS
(
&
(
surf
->
surface_desc
.
ddsCaps
));
DPRINTF
(
"
\n
"
);
DPRINTF
(
" Surface caps are : "
);
DDRAW_dump_DDSCAPS
2
(
&
(
surf
->
surface_desc
.
ddsCaps
));
DPRINTF
(
"
\n
"
);
}
if
(((
surf
->
surface_desc
.
ddsCaps
.
dwCaps
&
our_caps
.
dwCaps
)
==
our_caps
.
dwCaps
)
&&
((
surf
->
surface_desc
.
ddsCaps
.
dwCaps2
&
our_caps
.
dwCaps2
)
==
our_caps
.
dwCaps2
))
...
...
dlls/ddraw/helper.c
View file @
b103f7b6
...
...
@@ -155,7 +155,7 @@ void DDRAW_dump_DDBLT(DWORD flagmask)
DDRAW_dump_flags
(
flagmask
,
flags
,
sizeof
(
flags
)
/
sizeof
(
flags
[
0
]));
}
void
DDRAW_dump_DDSCAPS
(
const
DDSCAPS2
*
in
)
void
DDRAW_dump_DDSCAPS
2
(
const
DDSCAPS2
*
in
)
{
static
const
flag_info
flags
[]
=
{
FE
(
DDSCAPS_RESERVED1
),
...
...
@@ -215,6 +215,17 @@ void DDRAW_dump_DDSCAPS(const DDSCAPS2 *in)
DDRAW_dump_flags_
(
in
->
dwCaps2
,
flags2
,
sizeof
(
flags2
)
/
sizeof
(
flags2
[
0
]),
0
);
}
void
DDRAW_dump_DDSCAPS
(
const
DDSCAPS
*
in
)
{
DDSCAPS2
in_bis
;
in_bis
.
dwCaps
=
in
->
dwCaps
;
in_bis
.
dwCaps2
=
0
;
in_bis
.
dwCaps3
=
0
;
in_bis
.
dwCaps4
=
0
;
DDRAW_dump_DDSCAPS2
(
&
in_bis
);
}
void
DDRAW_dump_pixelformat_flag
(
DWORD
flagmask
)
{
static
const
flag_info
flags
[]
=
...
...
@@ -329,26 +340,40 @@ void DDRAW_dump_surface_desc(const DDSURFACEDESC2 *lpddsd)
{
#define STRUCT DDSURFACEDESC2
static
const
member_info
members
[]
=
{
ME
(
DDSD_CAPS
,
DDRAW_dump_DDSCAPS
,
ddsCaps
),
ME
(
DDSD_HEIGHT
,
DDRAW_dump_DWORD
,
dwHeight
),
ME
(
DDSD_WIDTH
,
DDRAW_dump_DWORD
,
dwWidth
),
ME
(
DDSD_PITCH
,
DDRAW_dump_DWORD
,
u1
.
lPitch
),
ME
(
DDSD_LINEARSIZE
,
DDRAW_dump_DWORD
,
u1
.
dwLinearSize
),
ME
(
DDSD_BACKBUFFERCOUNT
,
DDRAW_dump_DWORD
,
dwBackBufferCount
),
ME
(
DDSD_MIPMAPCOUNT
,
DDRAW_dump_DWORD
,
u2
.
dwMipMapCount
),
ME
(
DDSD_REFRESHRATE
,
DDRAW_dump_DWORD
,
u2
.
dwRefreshRate
),
ME
(
DDSD_ALPHABITDEPTH
,
DDRAW_dump_DWORD
,
dwAlphaBitDepth
),
ME
(
DDSD_LPSURFACE
,
DDRAW_dump_PTR
,
lpSurface
),
ME
(
DDSD_CKDESTOVERLAY
,
DDRAW_dump_DDCOLORKEY
,
u3
.
ddckCKDestOverlay
),
ME
(
DDSD_CKDESTBLT
,
DDRAW_dump_DDCOLORKEY
,
ddckCKDestBlt
),
ME
(
DDSD_CKSRCOVERLAY
,
DDRAW_dump_DDCOLORKEY
,
ddckCKSrcOverlay
),
ME
(
DDSD_CKSRCBLT
,
DDRAW_dump_DDCOLORKEY
,
ddckCKSrcBlt
),
ME
(
DDSD_PIXELFORMAT
,
DDRAW_dump_pixelformat
,
u4
.
ddpfPixelFormat
)
};
{
ME
(
DDSD_HEIGHT
,
DDRAW_dump_DWORD
,
dwHeight
),
ME
(
DDSD_WIDTH
,
DDRAW_dump_DWORD
,
dwWidth
),
ME
(
DDSD_PITCH
,
DDRAW_dump_DWORD
,
u1
.
lPitch
),
ME
(
DDSD_LINEARSIZE
,
DDRAW_dump_DWORD
,
u1
.
dwLinearSize
),
ME
(
DDSD_BACKBUFFERCOUNT
,
DDRAW_dump_DWORD
,
dwBackBufferCount
),
ME
(
DDSD_MIPMAPCOUNT
,
DDRAW_dump_DWORD
,
u2
.
dwMipMapCount
),
ME
(
DDSD_REFRESHRATE
,
DDRAW_dump_DWORD
,
u2
.
dwRefreshRate
),
ME
(
DDSD_ALPHABITDEPTH
,
DDRAW_dump_DWORD
,
dwAlphaBitDepth
),
ME
(
DDSD_LPSURFACE
,
DDRAW_dump_PTR
,
lpSurface
),
ME
(
DDSD_CKDESTOVERLAY
,
DDRAW_dump_DDCOLORKEY
,
u3
.
ddckCKDestOverlay
),
ME
(
DDSD_CKDESTBLT
,
DDRAW_dump_DDCOLORKEY
,
ddckCKDestBlt
),
ME
(
DDSD_CKSRCOVERLAY
,
DDRAW_dump_DDCOLORKEY
,
ddckCKSrcOverlay
),
ME
(
DDSD_CKSRCBLT
,
DDRAW_dump_DDCOLORKEY
,
ddckCKSrcBlt
),
ME
(
DDSD_PIXELFORMAT
,
DDRAW_dump_pixelformat
,
u4
.
ddpfPixelFormat
)
};
static
const
member_info
members_caps
[]
=
{
ME
(
DDSD_CAPS
,
DDRAW_dump_DDSCAPS
,
ddsCaps
)
};
static
const
member_info
members_caps2
[]
=
{
ME
(
DDSD_CAPS
,
DDRAW_dump_DDSCAPS2
,
ddsCaps
)
};
#undef STRUCT
if
(
lpddsd
->
dwSize
>=
sizeof
(
DDSURFACEDESC2
))
{
DDRAW_dump_members
(
lpddsd
->
dwFlags
,
lpddsd
,
members_caps2
,
1
);
}
else
{
DDRAW_dump_members
(
lpddsd
->
dwFlags
,
lpddsd
,
members_caps
,
1
);
}
DDRAW_dump_members
(
lpddsd
->
dwFlags
,
lpddsd
,
members
,
sizeof
(
members
)
/
sizeof
(
members
[
0
]));
sizeof
(
members
)
/
sizeof
(
members
[
0
]));
}
void
DDRAW_dump_cooperativelevel
(
DWORD
cooplevel
)
...
...
@@ -533,5 +558,5 @@ void DDRAW_dump_DDCAPS(const DDCAPS *lpcaps) {
DPRINTF
(
" - dwMinOverlayStretch : %ld
\n
"
,
lpcaps
->
dwMinOverlayStretch
);
DPRINTF
(
" - dwMaxOverlayStretch : %ld
\n
"
,
lpcaps
->
dwMaxOverlayStretch
);
DPRINTF
(
"...
\n
"
);
DPRINTF
(
" - ddsCaps : "
);
DDRAW_dump_DDSCAPS
(
&
lpcaps
->
ddsCaps
);
DPRINTF
(
"
\n
"
);
DPRINTF
(
" - ddsCaps : "
);
DDRAW_dump_DDSCAPS
2
(
&
lpcaps
->
ddsCaps
);
DPRINTF
(
"
\n
"
);
}
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