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
54b875c0
Commit
54b875c0
authored
Sep 24, 2023
by
Andrew Brobston
Committed by
Alexandre Julliard
Sep 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Support GUID_WICPixelFormat32bppRGB.
Needed by PowerFritz 18.
parent
167ad1ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
bitmap.c
dlls/d2d1/bitmap.c
+1
-0
d2d1.c
dlls/d2d1/tests/d2d1.c
+1
-0
No files found.
dlls/d2d1/bitmap.c
View file @
54b875c0
...
@@ -680,6 +680,7 @@ HRESULT d2d_bitmap_create_from_wic_bitmap(struct d2d_device_context *context, IW
...
@@ -680,6 +680,7 @@ HRESULT d2d_bitmap_create_from_wic_bitmap(struct d2d_device_context *context, IW
{
&
GUID_WICPixelFormat32bppPBGRA
,
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_PREMULTIPLIED
}},
{
&
GUID_WICPixelFormat32bppPBGRA
,
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_PREMULTIPLIED
}},
{
&
GUID_WICPixelFormat32bppPRGBA
,
{
DXGI_FORMAT_R8G8B8A8_UNORM
,
D2D1_ALPHA_MODE_PREMULTIPLIED
}},
{
&
GUID_WICPixelFormat32bppPRGBA
,
{
DXGI_FORMAT_R8G8B8A8_UNORM
,
D2D1_ALPHA_MODE_PREMULTIPLIED
}},
{
&
GUID_WICPixelFormat32bppBGR
,
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_IGNORE
}},
{
&
GUID_WICPixelFormat32bppBGR
,
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_IGNORE
}},
{
&
GUID_WICPixelFormat32bppRGB
,
{
DXGI_FORMAT_R8G8B8A8_UNORM
,
D2D1_ALPHA_MODE_IGNORE
}},
};
};
if
(
FAILED
(
hr
=
IWICBitmapSource_GetSize
(
bitmap_source
,
&
size
.
width
,
&
size
.
height
)))
if
(
FAILED
(
hr
=
IWICBitmapSource_GetSize
(
bitmap_source
,
&
size
.
width
,
&
size
.
height
)))
...
...
dlls/d2d1/tests/d2d1.c
View file @
54b875c0
...
@@ -10433,6 +10433,7 @@ static void test_wic_bitmap_format(BOOL d3d11)
...
@@ -10433,6 +10433,7 @@ static void test_wic_bitmap_format(BOOL d3d11)
{
&
GUID_WICPixelFormat32bppPBGRA
,
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_PREMULTIPLIED
}},
{
&
GUID_WICPixelFormat32bppPBGRA
,
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_PREMULTIPLIED
}},
{
&
GUID_WICPixelFormat32bppPRGBA
,
{
DXGI_FORMAT_R8G8B8A8_UNORM
,
D2D1_ALPHA_MODE_PREMULTIPLIED
}},
{
&
GUID_WICPixelFormat32bppPRGBA
,
{
DXGI_FORMAT_R8G8B8A8_UNORM
,
D2D1_ALPHA_MODE_PREMULTIPLIED
}},
{
&
GUID_WICPixelFormat32bppBGR
,
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_IGNORE
}},
{
&
GUID_WICPixelFormat32bppBGR
,
{
DXGI_FORMAT_B8G8R8A8_UNORM
,
D2D1_ALPHA_MODE_IGNORE
}},
{
&
GUID_WICPixelFormat32bppRGB
,
{
DXGI_FORMAT_R8G8B8A8_UNORM
,
D2D1_ALPHA_MODE_IGNORE
}},
};
};
if
(
!
init_test_context
(
&
ctx
,
d3d11
))
if
(
!
init_test_context
(
&
ctx
,
d3d11
))
...
...
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