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
653d57a2
Commit
653d57a2
authored
Jun 23, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dump FourCC correctly, print conversion messages, add reference to
ddraw in DDSurface::GetDDInterface.
parent
398d8b4e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
main.c
dlls/ddraw/dsurface/main.c
+2
-0
helper.c
dlls/ddraw/helper.c
+8
-2
x11.c
dlls/ddraw/x11.c
+6
-1
No files found.
dlls/ddraw/dsurface/main.c
View file @
653d57a2
...
...
@@ -1084,6 +1084,8 @@ HRESULT WINAPI IDirectDrawSurface4Impl_GetDDInterface(
FIXME
(
"(%p)->(%p),stub!
\n
"
,
This
,
lplpDD
);
/* Not sure about that... */
IDirectDraw_AddRef
((
LPDIRECTDRAW
)
This
->
s
.
ddraw
),
*
lplpDD
=
(
void
*
)
This
->
s
.
ddraw
;
return
DD_OK
;
...
...
dlls/ddraw/helper.c
View file @
653d57a2
...
...
@@ -221,8 +221,14 @@ void _dump_pixelformat(void *in) {
DPRINTF
(
"( "
);
_dump_pixelformat_flag
(
pf
->
dwFlags
);
if
(
pf
->
dwFlags
&
DDPF_FOURCC
)
DPRINTF
(
", dwFourCC : %ld"
,
pf
->
dwFourCC
);
if
(
pf
->
dwFlags
&
DDPF_FOURCC
)
{
DPRINTF
(
", dwFourCC : %c%c%c%c"
,
(
pf
->
dwFourCC
>>
24
)
&
0xff
,
(
pf
->
dwFourCC
>>
16
)
&
0xff
,
(
pf
->
dwFourCC
>>
8
)
&
0xff
,
pf
->
dwFourCC
&
0xff
);
}
if
(
pf
->
dwFlags
&
DDPF_RGB
)
{
char
*
cmd
;
DPRINTF
(
", RGB bits: %ld, "
,
pf
->
u
.
dwRGBBitCount
);
...
...
dlls/ddraw/x11.c
View file @
653d57a2
...
...
@@ -71,7 +71,12 @@ static HRESULT X11_Create( LPDIRECTDRAW *lplpDD ) {
/* At DirectDraw creation, the depth is the default depth */
depth
=
DefaultDepthOfScreen
(
X11DRV_GetXScreen
());
_common_depth_to_pixelformat
(
depth
,(
LPDIRECTDRAW
)
ddraw
);
switch
(
_common_depth_to_pixelformat
(
depth
,(
LPDIRECTDRAW
)
ddraw
))
{
case
-
2
:
ERR
(
"no depth conversion mode for depth %d found
\n
"
,
depth
);
break
;
case
-
1
:
WARN
(
"No conversion needed for depth %d.
\n
"
,
depth
);
break
;
case
0
:
MESSAGE
(
"Conversion needed from %d.
\n
"
,
depth
);
break
;
}
ddraw
->
d
.
height
=
MONITOR_GetHeight
(
&
MONITOR_PrimaryMonitor
);
ddraw
->
d
.
width
=
MONITOR_GetWidth
(
&
MONITOR_PrimaryMonitor
);
#ifdef HAVE_LIBXXSHM
...
...
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