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
4a5ed44d
Commit
4a5ed44d
authored
Oct 15, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Get rid of some fallback code in CreateSurface().
parent
59bdd6ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
26 deletions
+1
-26
ddraw.c
dlls/ddraw/ddraw.c
+1
-26
No files found.
dlls/ddraw/ddraw.c
View file @
4a5ed44d
...
...
@@ -2772,35 +2772,10 @@ static HRESULT CreateSurface(struct ddraw *ddraw, DDSURFACEDESC2 *DDSD,
copy_to_surfacedesc2
(
&
desc2
,
DDSD
);
desc2
.
u4
.
ddpfPixelFormat
.
dwSize
=
sizeof
(
DDPIXELFORMAT
);
/* Just to be sure */
/* Get the video mode from WineD3D - we will need it */
if
(
FAILED
(
hr
=
wined3d_get_adapter_display_mode
(
ddraw
->
wined3d
,
WINED3DADAPTER_DEFAULT
,
&
mode
,
NULL
)))
{
ERR
(
"Failed to get display mode, hr %#x.
\n
"
,
hr
);
switch
(
ddraw
->
orig_bpp
)
{
case
8
:
mode
.
format_id
=
WINED3DFMT_P8_UINT
;
break
;
case
15
:
mode
.
format_id
=
WINED3DFMT_B5G5R5X1_UNORM
;
break
;
case
16
:
mode
.
format_id
=
WINED3DFMT_B5G6R5_UNORM
;
break
;
case
24
:
mode
.
format_id
=
WINED3DFMT_B8G8R8_UNORM
;
break
;
case
32
:
mode
.
format_id
=
WINED3DFMT_B8G8R8X8_UNORM
;
break
;
}
mode
.
width
=
ddraw
->
orig_width
;
mode
.
height
=
ddraw
->
orig_height
;
return
hr
;
}
/* No pixelformat given? Use the current screen format */
...
...
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