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
fb9c01f1
Commit
fb9c01f1
authored
Nov 10, 2014
by
Matteo Bruni
Committed by
Alexandre Julliard
Nov 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Handle GUID_WICPixelFormat8bppGray format.
parent
7ba434b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
surface.c
dlls/d3dx9_36/surface.c
+1
-0
surface.c
dlls/d3dx9_36/tests/surface.c
+16
-0
No files found.
dlls/d3dx9_36/surface.c
View file @
fb9c01f1
...
...
@@ -40,6 +40,7 @@ static const struct
{
&
GUID_WICPixelFormat8bppIndexed
,
D3DFMT_P8
},
{
&
GUID_WICPixelFormat1bppIndexed
,
D3DFMT_P8
},
{
&
GUID_WICPixelFormat4bppIndexed
,
D3DFMT_P8
},
{
&
GUID_WICPixelFormat8bppGray
,
D3DFMT_L8
},
{
&
GUID_WICPixelFormat16bppBGR555
,
D3DFMT_X1R5G5B5
},
{
&
GUID_WICPixelFormat16bppBGR565
,
D3DFMT_R5G6B5
},
{
&
GUID_WICPixelFormat24bppBGR
,
D3DFMT_R8G8B8
},
...
...
dlls/d3dx9_36/tests/surface.c
View file @
fb9c01f1
...
...
@@ -80,6 +80,16 @@ static const unsigned char bmp_8bpp[] = {
0x00
,
0x00
};
static
const
unsigned
char
png_grayscale
[]
=
{
0x89
,
0x50
,
0x4e
,
0x47
,
0x0d
,
0x0a
,
0x1a
,
0x0a
,
0x00
,
0x00
,
0x00
,
0x0d
,
0x49
,
0x48
,
0x44
,
0x52
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x01
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x3a
,
0x7e
,
0x9b
,
0x55
,
0x00
,
0x00
,
0x00
,
0x0a
,
0x49
,
0x44
,
0x41
,
0x54
,
0x08
,
0xd7
,
0x63
,
0xf8
,
0x0f
,
0x00
,
0x01
,
0x01
,
0x01
,
0x00
,
0x1b
,
0xb6
,
0xee
,
0x56
,
0x00
,
0x00
,
0x00
,
0x00
,
0x49
,
0x45
,
0x4e
,
0x44
,
0xae
,
0x42
,
0x60
,
0x82
};
/* 2x2 A8R8G8B8 pixel data */
static
const
unsigned
char
pixdata
[]
=
{
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
...
...
@@ -493,6 +503,12 @@ static void test_D3DXGetImageInfo(void)
ok
(
info
.
Depth
==
1
,
"Got depth %u, expected 1
\n
"
,
info
.
Depth
);
ok
(
info
.
Format
==
D3DFMT_P8
,
"Got format %u, expected %u
\n
"
,
info
.
Format
,
D3DFMT_P8
);
/* Grayscale PNG */
hr
=
D3DXGetImageInfoFromFileInMemory
(
png_grayscale
,
sizeof
(
png_grayscale
),
&
info
);
ok
(
hr
==
D3D_OK
,
"D3DXGetImageInfoFromFileInMemory returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
ok
(
info
.
Depth
==
1
,
"Got depth %u, expected 1
\n
"
,
info
.
Depth
);
ok
(
info
.
Format
==
D3DFMT_L8
,
"Got format %u, expected %u
\n
"
,
info
.
Format
,
D3DFMT_L8
);
/* test DDS support */
hr
=
D3DXGetImageInfoFromFileInMemory
(
dds_24bit
,
sizeof
(
dds_24bit
),
&
info
);
ok
(
hr
==
D3D_OK
,
"D3DXGetImageInfoFromFileInMemory returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
...
...
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