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
50d3f808
Commit
50d3f808
authored
Sep 08, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Just pass FOURCC formats through to wined3d.
parent
b1a385db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
41 deletions
+1
-41
utils.c
dlls/ddraw/utils.c
+1
-41
No files found.
dlls/ddraw/utils.c
View file @
50d3f808
...
...
@@ -568,47 +568,7 @@ enum wined3d_format_id PixelFormat_DD2WineD3D(const DDPIXELFORMAT *DDPixelFormat
}
else
if
(
DDPixelFormat
->
dwFlags
&
DDPF_FOURCC
)
{
if
(
DDPixelFormat
->
dwFourCC
==
MAKEFOURCC
(
'U'
,
'Y'
,
'V'
,
'Y'
))
{
return
WINED3DFMT_UYVY
;
}
if
(
DDPixelFormat
->
dwFourCC
==
MAKEFOURCC
(
'Y'
,
'U'
,
'Y'
,
'2'
))
{
return
WINED3DFMT_YUY2
;
}
if
(
DDPixelFormat
->
dwFourCC
==
MAKEFOURCC
(
'Y'
,
'V'
,
'1'
,
'2'
))
{
return
WINED3DFMT_YV12
;
}
if
(
DDPixelFormat
->
dwFourCC
==
MAKEFOURCC
(
'D'
,
'X'
,
'T'
,
'1'
))
{
return
WINED3DFMT_DXT1
;
}
if
(
DDPixelFormat
->
dwFourCC
==
MAKEFOURCC
(
'D'
,
'X'
,
'T'
,
'2'
))
{
return
WINED3DFMT_DXT2
;
}
if
(
DDPixelFormat
->
dwFourCC
==
MAKEFOURCC
(
'D'
,
'X'
,
'T'
,
'3'
))
{
return
WINED3DFMT_DXT3
;
}
if
(
DDPixelFormat
->
dwFourCC
==
MAKEFOURCC
(
'D'
,
'X'
,
'T'
,
'4'
))
{
return
WINED3DFMT_DXT4
;
}
if
(
DDPixelFormat
->
dwFourCC
==
MAKEFOURCC
(
'D'
,
'X'
,
'T'
,
'5'
))
{
return
WINED3DFMT_DXT5
;
}
if
(
DDPixelFormat
->
dwFourCC
==
MAKEFOURCC
(
'G'
,
'R'
,
'G'
,
'B'
))
{
return
WINED3DFMT_G8R8_G8B8
;
}
if
(
DDPixelFormat
->
dwFourCC
==
MAKEFOURCC
(
'R'
,
'G'
,
'B'
,
'G'
))
{
return
WINED3DFMT_R8G8_B8G8
;
}
return
WINED3DFMT_UNKNOWN
;
/* Abuse this as an error value */
return
DDPixelFormat
->
dwFourCC
;
}
else
if
(
DDPixelFormat
->
dwFlags
&
DDPF_BUMPDUDV
)
{
...
...
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