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
5de27f63
Commit
5de27f63
authored
Nov 17, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1/tests: Use d2d error code name for unsupported pixel format error code.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
a50dbd6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
d2d1.c
dlls/d2d1/tests/d2d1.c
+11
-11
No files found.
dlls/d2d1/tests/d2d1.c
View file @
5de27f63
...
...
@@ -5201,15 +5201,15 @@ static void test_shared_bitmap(BOOL d3d11)
{
{
DXGI_FORMAT_UNKNOWN
,
D2D1_ALPHA_MODE_IGNORE
},
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_IGNORE
}
},
{
{
DXGI_FORMAT_UNKNOWN
,
D2D1_ALPHA_MODE_UNKNOWN
},
{
0
},
WINCODEC_ERR_UNSUPPORTEDPIXEL
FORMAT
},
{
{
DXGI_FORMAT_UNKNOWN
,
D2D1_ALPHA_MODE_UNKNOWN
},
{
0
},
D2DERR_UNSUPPORTED_PIXEL_
FORMAT
},
{
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_UNKNOWN
},
{
0
},
WINCODEC_ERR_UNSUPPORTEDPIXEL
FORMAT
},
{
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_UNKNOWN
},
{
0
},
D2DERR_UNSUPPORTED_PIXEL_
FORMAT
},
{
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_IGNORE
},
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_IGNORE
}
},
{
{
DXGI_FORMAT_UNKNOWN
,
D2D1_ALPHA_MODE_STRAIGHT
},
{
0
},
WINCODEC_ERR_UNSUPPORTEDPIXEL
FORMAT
},
{
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_STRAIGHT
},
{
0
},
WINCODEC_ERR_UNSUPPORTEDPIXEL
FORMAT
},
{
{
DXGI_FORMAT_UNKNOWN
,
D2D1_ALPHA_MODE_STRAIGHT
},
{
0
},
D2DERR_UNSUPPORTED_PIXEL_
FORMAT
},
{
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_STRAIGHT
},
{
0
},
D2DERR_UNSUPPORTED_PIXEL_
FORMAT
},
};
unsigned
int
i
;
...
...
@@ -8974,7 +8974,7 @@ static void check_rt_bitmap_surface_(unsigned int line, ID2D1RenderTarget *rt, B
{
hr
=
ID2D1RenderTarget_CreateCompatibleRenderTarget
(
rt
,
NULL
,
NULL
,
NULL
,
D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE
,
&
compatible_rt
);
ok_
(
__FILE__
,
line
)(
hr
==
WINCODEC_ERR_UNSUPPORTEDPIXEL
FORMAT
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok_
(
__FILE__
,
line
)(
hr
==
D2DERR_UNSUPPORTED_PIXEL_
FORMAT
,
"Unexpected hr %#lx.
\n
"
,
hr
);
}
ID2D1DeviceContext_Release
(
context
);
...
...
@@ -9032,19 +9032,19 @@ static void test_bitmap_surface(BOOL d3d11)
{
{
DXGI_FORMAT_UNKNOWN
,
D2D1_ALPHA_MODE_PREMULTIPLIED
},
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_PREMULTIPLIED
}
},
{
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_STRAIGHT
},
{
0
},
WINCODEC_ERR_UNSUPPORTEDPIXEL
FORMAT
},
{
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_STRAIGHT
},
{
0
},
D2DERR_UNSUPPORTED_PIXEL_
FORMAT
},
{
{
DXGI_FORMAT_UNKNOWN
,
D2D1_ALPHA_MODE_IGNORE
},
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_IGNORE
}
},
{
{
DXGI_FORMAT_UNKNOWN
,
D2D1_ALPHA_MODE_UNKNOWN
},
{
0
},
WINCODEC_ERR_UNSUPPORTEDPIXEL
FORMAT
},
{
{
DXGI_FORMAT_UNKNOWN
,
D2D1_ALPHA_MODE_UNKNOWN
},
{
0
},
D2DERR_UNSUPPORTED_PIXEL_
FORMAT
},
{
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_UNKNOWN
},
{
0
},
WINCODEC_ERR_UNSUPPORTEDPIXEL
FORMAT
},
{
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_UNKNOWN
},
{
0
},
D2DERR_UNSUPPORTED_PIXEL_
FORMAT
},
{
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_IGNORE
},
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_IGNORE
}
},
{
{
DXGI_FORMAT_UNKNOWN
,
D2D1_ALPHA_MODE_STRAIGHT
},
{
0
},
WINCODEC_ERR_UNSUPPORTEDPIXEL
FORMAT
},
{
{
DXGI_FORMAT_UNKNOWN
,
D2D1_ALPHA_MODE_STRAIGHT
},
{
0
},
D2DERR_UNSUPPORTED_PIXEL_
FORMAT
},
};
D2D1_HWND_RENDER_TARGET_PROPERTIES
hwnd_rt_desc
;
D2D1_RENDER_TARGET_PROPERTIES
rt_desc
;
...
...
@@ -9104,7 +9104,7 @@ static void test_bitmap_surface(BOOL d3d11)
bitmap_desc
.
bitmapOptions
=
D2D1_BITMAP_OPTIONS_TARGET
|
D2D1_BITMAP_OPTIONS_CANNOT_DRAW
;
hr
=
ID2D1DeviceContext_CreateBitmapFromDxgiSurface
(
device_context
,
ctx
.
surface
,
&
bitmap_desc
,
&
bitmap
);
todo_wine_if
(
bitmap_format_tests
[
i
].
hr
==
WINCODEC_ERR_UNSUPPORTEDPIXEL
FORMAT
)
todo_wine_if
(
bitmap_format_tests
[
i
].
hr
==
D2DERR_UNSUPPORTED_PIXEL_
FORMAT
)
ok
(
hr
==
bitmap_format_tests
[
i
].
hr
,
"%u: Got unexpected hr %#lx.
\n
"
,
i
,
hr
);
if
(
SUCCEEDED
(
hr
)
&&
hr
==
bitmap_format_tests
[
i
].
hr
)
...
...
@@ -9125,7 +9125,7 @@ static void test_bitmap_surface(BOOL d3d11)
surface2
=
create_surface
(
ctx
.
device
,
DXGI_FORMAT_A8_UNORM
);
hr
=
ID2D1DeviceContext_CreateBitmapFromDxgiSurface
(
device_context
,
surface2
,
NULL
,
&
bitmap
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
WINCODEC_ERR_UNSUPPORTEDPIXEL
FORMAT
)
/* Win7 */
,
ok
(
hr
==
S_OK
||
broken
(
hr
==
D2DERR_UNSUPPORTED_PIXEL_
FORMAT
)
/* Win7 */
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
...
...
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