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
2c109d2d
Commit
2c109d2d
authored
Nov 28, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Move the DDSD_CAPS fixup from CreateSurface() to ddraw_surface_create_texture().
parent
06f393dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
ddraw.c
dlls/ddraw/ddraw.c
+0
-6
surface.c
dlls/ddraw/surface.c
+3
-0
No files found.
dlls/ddraw/ddraw.c
View file @
2c109d2d
...
...
@@ -2836,12 +2836,6 @@ static HRESULT CreateSurface(struct ddraw *ddraw, DDSURFACEDESC2 *DDSD,
return
E_POINTER
;
/* unchecked */
}
if
(
!
(
DDSD
->
dwFlags
&
DDSD_CAPS
))
{
/* DVIDEO.DLL does forget the DDSD_CAPS flag ... *sigh* */
DDSD
->
dwFlags
|=
DDSD_CAPS
;
}
/* Modify some flags */
copy_to_surfacedesc2
(
&
desc2
,
DDSD
);
...
...
dlls/ddraw/surface.c
View file @
2c109d2d
...
...
@@ -5608,6 +5608,9 @@ HRESULT ddraw_surface_create_texture(struct ddraw *ddraw, DDSURFACEDESC2 *desc,
DDRAW_dump_surface_desc
(
desc
);
}
/* Ensure DDSD_CAPS is always set. */
desc
->
dwFlags
|=
DDSD_CAPS
;
/* If the surface is of the 'ALLOCONLOAD' type, ignore the LPSURFACE
* field. Frank Herbert's Dune specifies a NULL pointer for lpSurface. */
if
((
desc
->
ddsCaps
.
dwCaps
&
DDSCAPS_ALLOCONLOAD
)
||
!
desc
->
lpSurface
)
...
...
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