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
a78708ca
Commit
a78708ca
authored
Jun 21, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Use wined3d_get_adapter_display_mode() in CreateSurface().
parent
11b76049
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ddraw.c
dlls/ddraw/ddraw.c
+4
-4
No files found.
dlls/ddraw/ddraw.c
View file @
a78708ca
...
...
@@ -2892,11 +2892,11 @@ static HRESULT CreateSurface(struct ddraw *ddraw, DDSURFACEDESC2 *DDSD,
desc2
.
u4
.
ddpfPixelFormat
.
dwSize
=
sizeof
(
DDPIXELFORMAT
);
/* Just to be sure */
/* Get the video mode from WineD3D - we will need it */
hr
=
wined3d_device_get_display_mode
(
ddraw
->
wined3d_device
,
0
,
&
mode
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
=
wined3d_get_adapter_display_mode
(
ddraw
->
wined3d
,
WINED3DADAPTER_DEFAULT
,
&
mode
)))
{
ERR
(
"Failed to read display mode from wined3d
\n
"
);
switch
(
ddraw
->
orig_bpp
)
ERR
(
"Failed to get display mode, hr %#x.
\n
"
,
hr
);
switch
(
ddraw
->
orig_bpp
)
{
case
8
:
mode
.
format_id
=
WINED3DFMT_P8_UINT
;
...
...
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