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
3288911a
Commit
3288911a
authored
Dec 22, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use proper enum elements for FOURCC formats.
parent
5d2a46d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
18 deletions
+19
-18
wined3d_private.h
dlls/wined3d/wined3d_private.h
+4
-0
wined3d.idl
include/wine/wined3d.idl
+15
-18
No files found.
dlls/wined3d/wined3d_private.h
View file @
3288911a
...
...
@@ -2894,4 +2894,8 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface,
/* The WNDCLASS-Name for the fake window which we use to retrieve the GL capabilities */
#define WINED3D_OPENGL_WINDOW_CLASS_NAME "WineD3D_OpenGL"
#define WINEMAKEFOURCC(ch0, ch1, ch2, ch3) \
((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))
#endif
include/wine/wined3d.idl
View file @
3288911a
...
...
@@ -253,27 +253,24 @@ typedef enum _WINED3DFORMAT
WINED3DFMT_B5G5R5A1_UNORM
,
WINED3DFMT_B8G8R8A8_UNORM
,
WINED3DFMT_B8G8R8X8_UNORM
,
/*
FOURCC
formats
.
*/
WINED3DFMT_UYVY
=
0
x59565955
,
/*
UYVY
*/
WINED3DFMT_YUY2
=
0
x32595559
,
/*
YUY2
*/
WINED3DFMT_YV12
=
0
x32315659
,
/*
YV12
*/
WINED3DFMT_DXT1
=
0
x31545844
,
/*
DXT1
*/
WINED3DFMT_DXT2
=
0
x32545844
,
/*
DXT2
*/
WINED3DFMT_DXT3
=
0
x33545844
,
/*
DXT3
*/
WINED3DFMT_DXT4
=
0
x34545844
,
/*
DXT4
*/
WINED3DFMT_DXT5
=
0
x35545844
,
/*
DXT5
*/
WINED3DFMT_MULTI2_ARGB8
=
0
x3154454d
,
/*
MET1
*/
WINED3DFMT_G8R8_G8B8
=
0
x42475247
,
/*
GRGB
*/
WINED3DFMT_R8G8_B8G8
=
0
x47424752
,
/*
RGBG
*/
WINED3DFMT_ATI2N
=
0
x32495441
,
/*
ATI2
*/
WINED3DFMT_NVHU
=
0
x5548564e
,
/*
NVHU
*/
WINED3DFMT_NVHS
=
0
x5348564e
,
/*
NVHS
*/
WINED3DFMT_FORCE_DWORD
=
0
xffffffff
}
WINED3DFORMAT
;
cpp_quote
(
"#define WINEMAKEFOURCC(ch0, ch1, ch2, ch3) \\"
)
cpp_quote
(
" ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \\"
)
cpp_quote
(
" ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))"
)
cpp_quote
(
"#define WINED3DFMT_UYVY WINEMAKEFOURCC('U', 'Y', 'V', 'Y')"
)
cpp_quote
(
"#define WINED3DFMT_YUY2 WINEMAKEFOURCC('Y', 'U', 'Y', '2')"
)
cpp_quote
(
"#define WINED3DFMT_YV12 WINEMAKEFOURCC('Y', 'V', '1', '2')"
)
cpp_quote
(
"#define WINED3DFMT_DXT1 WINEMAKEFOURCC('D', 'X', 'T', '1')"
)
cpp_quote
(
"#define WINED3DFMT_DXT2 WINEMAKEFOURCC('D', 'X', 'T', '2')"
)
cpp_quote
(
"#define WINED3DFMT_DXT3 WINEMAKEFOURCC('D', 'X', 'T', '3')"
)
cpp_quote
(
"#define WINED3DFMT_DXT4 WINEMAKEFOURCC('D', 'X', 'T', '4')"
)
cpp_quote
(
"#define WINED3DFMT_DXT5 WINEMAKEFOURCC('D', 'X', 'T', '5')"
)
cpp_quote
(
"#define WINED3DFMT_MULTI2_ARGB8 WINEMAKEFOURCC('M', 'E', 'T', '1')"
)
cpp_quote
(
"#define WINED3DFMT_G8R8_G8B8 WINEMAKEFOURCC('G', 'R', 'G', 'B')"
)
cpp_quote
(
"#define WINED3DFMT_R8G8_B8G8 WINEMAKEFOURCC('R', 'G', 'B', 'G')"
)
/*
Vendor
specific
formats
*/
cpp_quote
(
"#define WINED3DFMT_ATI2N WINEMAKEFOURCC('A', 'T', 'I', '2')"
)
cpp_quote
(
"#define WINED3DFMT_NVHU WINEMAKEFOURCC('N', 'V', 'H', 'U')"
)
cpp_quote
(
"#define WINED3DFMT_NVHS WINEMAKEFOURCC('N', 'V', 'H', 'S')"
)
typedef
enum
_WINED3DRENDERSTATETYPE
{
...
...
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