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
b4640673
Commit
b4640673
authored
Sep 06, 2013
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Create a sysmem surface if the format is not supported.
parent
ba4278a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
ddraw.c
dlls/ddraw/ddraw.c
+21
-0
No files found.
dlls/ddraw/ddraw.c
View file @
b4640673
...
...
@@ -3000,6 +3000,27 @@ static HRESULT CreateSurface(struct ddraw *ddraw, DDSURFACEDESC2 *DDSD,
ddrawformat_from_wined3dformat
(
&
desc2
.
u4
.
ddpfPixelFormat
,
mode
.
format_id
);
}
if
(
!
(
desc2
.
ddsCaps
.
dwCaps
&
(
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_SYSTEMMEMORY
))
&&
!
(
desc2
.
ddsCaps
.
dwCaps2
&
DDSCAPS2_TEXTUREMANAGE
))
{
enum
wined3d_format_id
format
=
wined3dformat_from_ddrawformat
(
&
desc2
.
u4
.
ddpfPixelFormat
);
enum
wined3d_resource_type
rtype
;
if
(
desc2
.
ddsCaps
.
dwCaps
&
DDSCAPS_TEXTURE
)
rtype
=
WINED3D_RTYPE_TEXTURE
;
else
if
(
desc2
.
ddsCaps
.
dwCaps2
&
DDSCAPS2_CUBEMAP
)
rtype
=
WINED3D_RTYPE_CUBE_TEXTURE
;
else
rtype
=
WINED3D_RTYPE_SURFACE
;
hr
=
wined3d_check_device_format
(
ddraw
->
wined3d
,
WINED3DADAPTER_DEFAULT
,
WINED3D_DEVICE_TYPE_HAL
,
mode
.
format_id
,
0
,
rtype
,
format
);
if
(
SUCCEEDED
(
hr
))
desc2
.
ddsCaps
.
dwCaps
|=
DDSCAPS_VIDEOMEMORY
;
else
desc2
.
ddsCaps
.
dwCaps
|=
DDSCAPS_SYSTEMMEMORY
;
}
/* No Width or no Height? Use the original screen size
*/
if
(
!
(
desc2
.
dwFlags
&
DDSD_WIDTH
)
||
...
...
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