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
d4ca34dd
Commit
d4ca34dd
authored
Jan 17, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d: Fix the D3DFMT_XXX constant declarations.
parent
0c31ca34
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
12 deletions
+15
-12
device.c
dlls/d3d9/tests/device.c
+5
-4
utils.c
dlls/ddraw/utils.c
+1
-1
utils.c
dlls/wined3d/utils.c
+2
-2
d3d8types.h
include/d3d8types.h
+3
-0
d3d9types.h
include/d3d9types.h
+2
-3
wined3d_types.h
include/wine/wined3d_types.h
+2
-2
No files found.
dlls/d3d9/tests/device.c
View file @
d4ca34dd
...
...
@@ -868,9 +868,11 @@ static void test_display_modes(void)
ok(res==(r), "EnumAdapterModes("#x") did not return "#r" (got %s)!\n", DXGetErrorString9(res)); \
} while(0)
TEST_FMT
(
D3DFMT_X1R5G5B5
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_R8G8B8
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_A8R8G8B8
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_X8B8G8R8
,
D3DERR_INVALIDCALL
);
/* D3DFMT_R5G6B5 */
TEST_FMT
(
D3DFMT_X1R5G5B5
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_A1R5G5B5
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_A4R4G4B4
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_R3G3B2
,
D3DERR_INVALIDCALL
);
...
...
@@ -896,7 +898,6 @@ static void test_display_modes(void)
TEST_FMT
(
D3DFMT_X8L8V8U8
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_Q8W8V8U8
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_V16U16
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_W11V11U10
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_A2W10V10U10
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_UYVY
,
D3DERR_INVALIDCALL
);
...
...
@@ -906,7 +907,7 @@ static void test_display_modes(void)
TEST_FMT
(
D3DFMT_DXT3
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_DXT4
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_DXT5
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_MULTI2_ARGB
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_MULTI2_ARGB
8
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_G8R8_G8B8
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_R8G8_B8G8
,
D3DERR_INVALIDCALL
);
...
...
@@ -925,7 +926,7 @@ static void test_display_modes(void)
TEST_FMT
(
D3DFMT_INDEX16
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_INDEX32
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_Q16W16V16U16
,
D3DERR_INVALIDCALL
);
/* Fl
ao
ting point formats */
/* Fl
oa
ting point formats */
TEST_FMT
(
D3DFMT_R16F
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_G16R16F
,
D3DERR_INVALIDCALL
);
TEST_FMT
(
D3DFMT_A16B16G16R16F
,
D3DERR_INVALIDCALL
);
...
...
dlls/ddraw/utils.c
View file @
d4ca34dd
...
...
@@ -255,7 +255,7 @@ PixelFormat_WineD3DtoDD(DDPIXELFORMAT *DDPixelFormat,
case
WINED3DFMT_DXT3
:
case
WINED3DFMT_DXT4
:
case
WINED3DFMT_DXT5
:
case
WINED3DFMT_MULTI2_ARGB
:
case
WINED3DFMT_MULTI2_ARGB
8
:
case
WINED3DFMT_G8R8_G8B8
:
case
WINED3DFMT_R8G8_B8G8
:
DDPixelFormat
->
dwFlags
=
DDPF_FOURCC
;
...
...
dlls/wined3d/utils.c
View file @
d4ca34dd
...
...
@@ -43,7 +43,7 @@ static const PixelFormatDesc formats[] = {
{
WINED3DFMT_DXT3
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
TRUE
,
GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
,
GL_RGBA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_DXT4
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
TRUE
,
GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
,
GL_RGBA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_DXT5
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
TRUE
,
GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
,
GL_RGBA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_MULTI2_ARGB
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
},
{
WINED3DFMT_MULTI2_ARGB
8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
},
{
WINED3DFMT_G8R8_G8B8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
},
{
WINED3DFMT_R8G8_B8G8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
TRUE
,
0
,
0
,
0
},
/* IEEE formats */
...
...
@@ -174,7 +174,7 @@ const char* debug_d3dformat(WINED3DFORMAT fmt) {
FMT_TO_STR
(
WINED3DFMT_DXT3
);
FMT_TO_STR
(
WINED3DFMT_DXT4
);
FMT_TO_STR
(
WINED3DFMT_DXT5
);
FMT_TO_STR
(
WINED3DFMT_MULTI2_ARGB
);
FMT_TO_STR
(
WINED3DFMT_MULTI2_ARGB
8
);
FMT_TO_STR
(
WINED3DFMT_G8R8_G8B8
);
FMT_TO_STR
(
WINED3DFMT_R8G8_B8G8
);
FMT_TO_STR
(
WINED3DFMT_D16_LOCKABLE
);
...
...
include/d3d8types.h
View file @
d4ca34dd
...
...
@@ -613,6 +613,8 @@ typedef enum _D3DFORMAT {
D3DFMT_A8
=
28
,
D3DFMT_A8R3G3B2
=
29
,
D3DFMT_X4R4G4B4
=
30
,
D3DFMT_A2B10G10R10
=
31
,
D3DFMT_G16R16
=
34
,
D3DFMT_A8P8
=
40
,
D3DFMT_P8
=
41
,
...
...
@@ -627,6 +629,7 @@ typedef enum _D3DFORMAT {
D3DFMT_Q8W8V8U8
=
63
,
D3DFMT_V16U16
=
64
,
D3DFMT_W11V11U10
=
65
,
D3DFMT_A2W10V10U10
=
67
,
D3DFMT_UYVY
=
MAKEFOURCC
(
'U'
,
'Y'
,
'V'
,
'Y'
),
D3DFMT_YUY2
=
MAKEFOURCC
(
'Y'
,
'U'
,
'Y'
,
'2'
),
...
...
include/d3d9types.h
View file @
d4ca34dd
...
...
@@ -797,7 +797,6 @@ typedef enum _D3DFORMAT {
D3DFMT_X8L8V8U8
=
62
,
D3DFMT_Q8W8V8U8
=
63
,
D3DFMT_V16U16
=
64
,
D3DFMT_W11V11U10
=
65
,
D3DFMT_A2W10V10U10
=
67
,
D3DFMT_UYVY
=
MAKEFOURCC
(
'U'
,
'Y'
,
'V'
,
'Y'
),
...
...
@@ -807,7 +806,7 @@ typedef enum _D3DFORMAT {
D3DFMT_DXT3
=
MAKEFOURCC
(
'D'
,
'X'
,
'T'
,
'3'
),
D3DFMT_DXT4
=
MAKEFOURCC
(
'D'
,
'X'
,
'T'
,
'4'
),
D3DFMT_DXT5
=
MAKEFOURCC
(
'D'
,
'X'
,
'T'
,
'5'
),
D3DFMT_MULTI2_ARGB
=
MAKEFOURCC
(
'M'
,
'E'
,
'T'
,
'1'
),
D3DFMT_MULTI2_ARGB
8
=
MAKEFOURCC
(
'M'
,
'E'
,
'T'
,
'1'
),
D3DFMT_G8R8_G8B8
=
MAKEFOURCC
(
'G'
,
'R'
,
'G'
,
'B'
),
D3DFMT_R8G8_B8G8
=
MAKEFOURCC
(
'R'
,
'G'
,
'B'
,
'G'
),
...
...
@@ -826,7 +825,7 @@ typedef enum _D3DFORMAT {
D3DFMT_INDEX16
=
101
,
D3DFMT_INDEX32
=
102
,
D3DFMT_Q16W16V16U16
=
110
,
/* Fl
ao
ting point formats */
/* Fl
oa
ting point formats */
D3DFMT_R16F
=
111
,
D3DFMT_G16R16F
=
112
,
D3DFMT_A16B16G16R16F
=
113
,
...
...
include/wine/wined3d_types.h
View file @
d4ca34dd
...
...
@@ -267,7 +267,7 @@ typedef enum _WINED3DFORMAT {
WINED3DFMT_DXT3
=
MAKEFOURCC
(
'D'
,
'X'
,
'T'
,
'3'
),
WINED3DFMT_DXT4
=
MAKEFOURCC
(
'D'
,
'X'
,
'T'
,
'4'
),
WINED3DFMT_DXT5
=
MAKEFOURCC
(
'D'
,
'X'
,
'T'
,
'5'
),
WINED3DFMT_MULTI2_ARGB
=
MAKEFOURCC
(
'M'
,
'E'
,
'T'
,
'1'
),
WINED3DFMT_MULTI2_ARGB
8
=
MAKEFOURCC
(
'M'
,
'E'
,
'T'
,
'1'
),
WINED3DFMT_G8R8_G8B8
=
MAKEFOURCC
(
'G'
,
'R'
,
'G'
,
'B'
),
WINED3DFMT_R8G8_B8G8
=
MAKEFOURCC
(
'R'
,
'G'
,
'B'
,
'G'
),
...
...
@@ -286,7 +286,7 @@ typedef enum _WINED3DFORMAT {
WINED3DFMT_INDEX16
=
101
,
WINED3DFMT_INDEX32
=
102
,
WINED3DFMT_Q16W16V16U16
=
110
,
/* Fl
ao
ting point formats */
/* Fl
oa
ting point formats */
WINED3DFMT_R16F
=
111
,
WINED3DFMT_G16R16F
=
112
,
WINED3DFMT_A16B16G16R16F
=
113
,
...
...
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