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
386fdd81
Commit
386fdd81
authored
Jan 04, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Declare some functions static.
parent
590bca84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
ddraw_private.h
dlls/ddraw/ddraw_private.h
+0
-1
utils.c
dlls/ddraw/utils.c
+20
-19
No files found.
dlls/ddraw/ddraw_private.h
View file @
386fdd81
...
...
@@ -631,7 +631,6 @@ typedef struct
}
member_info
;
/* Structure copy */
#define DDRAW_dump_flags(flags,names,num_names) DDRAW_dump_flags_(flags, names, num_names, 1)
#define ME(x,f,e) { x, #x, (void (*)(const void *))(f), offsetof(STRUCT, e) }
#define DD_STRUCT_COPY_BYSIZE(to,from) \
...
...
dlls/ddraw/utils.c
View file @
386fdd81
...
...
@@ -30,7 +30,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
ddraw
);
void
DDRAW_dump_flags_
(
DWORD
flags
,
const
flag_info
*
names
,
size_t
num_names
,
int
newline
);
/*****************************************************************************
* PixelFormat_WineD3DtoDD
...
...
@@ -629,6 +628,25 @@ DDRAW_dump_DDCOLORKEY(const DDCOLORKEY *ddck)
{
DPRINTF
(
" Low : %d - High : %d"
,
ddck
->
dwColorSpaceLowValue
,
ddck
->
dwColorSpaceHighValue
);
}
#define DDRAW_dump_flags(flags,names,num_names) DDRAW_dump_flags_(flags, names, num_names, 1)
static
void
DDRAW_dump_flags_
(
DWORD
flags
,
const
flag_info
*
names
,
size_t
num_names
,
int
newline
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
num_names
;
i
++
)
if
((
flags
&
names
[
i
].
val
)
||
/* standard flag value */
((
!
flags
)
&&
(
!
names
[
i
].
val
)))
/* zero value only */
DPRINTF
(
"%s "
,
names
[
i
].
name
);
if
(
newline
)
DPRINTF
(
"
\n
"
);
}
void
DDRAW_dump_DDSCAPS2
(
const
DDSCAPS2
*
in
)
{
static
const
flag_info
flags
[]
=
{
...
...
@@ -702,23 +720,6 @@ DDRAW_dump_DDSCAPS(const DDSCAPS *in)
DDRAW_dump_DDSCAPS2
(
&
in_bis
);
}
void
DDRAW_dump_flags_
(
DWORD
flags
,
const
flag_info
*
names
,
size_t
num_names
,
int
newline
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
num_names
;
i
++
)
if
((
flags
&
names
[
i
].
val
)
||
/* standard flag value */
((
!
flags
)
&&
(
!
names
[
i
].
val
)))
/* zero value only */
DPRINTF
(
"%s "
,
names
[
i
].
name
);
if
(
newline
)
DPRINTF
(
"
\n
"
);
}
static
void
DDRAW_dump_pixelformat_flag
(
DWORD
flagmask
)
{
...
...
@@ -743,7 +744,7 @@ DDRAW_dump_pixelformat_flag(DWORD flagmask)
DDRAW_dump_flags_
(
flagmask
,
flags
,
sizeof
(
flags
)
/
sizeof
(
flags
[
0
]),
0
);
}
void
static
void
DDRAW_dump_members
(
DWORD
flags
,
const
void
*
data
,
const
member_info
*
mems
,
...
...
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