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
4f1dfdad
Commit
4f1dfdad
authored
Aug 05, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Add parameter validation to FillOpacityMask().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
929694c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
device.c
dlls/d2d1/device.c
+28
-0
No files found.
dlls/d2d1/device.c
View file @
4f1dfdad
...
...
@@ -1096,8 +1096,25 @@ static void STDMETHODCALLTYPE d2d_device_context_FillOpacityMask(ID2D1DeviceCont
ID2D1Bitmap
*
mask
,
ID2D1Brush
*
brush
,
D2D1_OPACITY_MASK_CONTENT
content
,
const
D2D1_RECT_F
*
dst_rect
,
const
D2D1_RECT_F
*
src_rect
)
{
struct
d2d_device_context
*
context
=
impl_from_ID2D1DeviceContext
(
iface
);
FIXME
(
"iface %p, mask %p, brush %p, content %#x, dst_rect %s, src_rect %s stub!
\n
"
,
iface
,
mask
,
brush
,
content
,
debug_d2d_rect_f
(
dst_rect
),
debug_d2d_rect_f
(
src_rect
));
if
(
FAILED
(
context
->
error
.
code
))
return
;
if
(
context
->
drawing_state
.
antialiasMode
!=
D2D1_ANTIALIAS_MODE_ALIASED
)
{
d2d_device_context_set_error
(
context
,
D2DERR_WRONG_STATE
);
return
;
}
if
((
unsigned
int
)
content
>
D2D1_OPACITY_MASK_CONTENT_TEXT_GDI_COMPATIBLE
)
{
d2d_device_context_set_error
(
context
,
E_INVALIDARG
);
return
;
}
}
static
void
d2d_device_context_draw_bitmap
(
struct
d2d_device_context
*
context
,
ID2D1Bitmap
*
bitmap
,
...
...
@@ -2584,8 +2601,19 @@ static HRESULT STDMETHODCALLTYPE d2d_device_context_GetEffectRequiredInputRectan
static
void
STDMETHODCALLTYPE
d2d_device_context_ID2D1DeviceContext_FillOpacityMask
(
ID2D1DeviceContext1
*
iface
,
ID2D1Bitmap
*
mask
,
ID2D1Brush
*
brush
,
const
D2D1_RECT_F
*
dst_rect
,
const
D2D1_RECT_F
*
src_rect
)
{
struct
d2d_device_context
*
context
=
impl_from_ID2D1DeviceContext
(
iface
);
FIXME
(
"iface %p, mask %p, brush %p, dst_rect %s, src_rect %s stub!
\n
"
,
iface
,
mask
,
brush
,
debug_d2d_rect_f
(
dst_rect
),
debug_d2d_rect_f
(
src_rect
));
if
(
FAILED
(
context
->
error
.
code
))
return
;
if
(
context
->
drawing_state
.
antialiasMode
!=
D2D1_ANTIALIAS_MODE_ALIASED
)
{
d2d_device_context_set_error
(
context
,
D2DERR_WRONG_STATE
);
return
;
}
}
static
HRESULT
STDMETHODCALLTYPE
d2d_device_context_CreateFilledGeometryRealization
(
ID2D1DeviceContext1
*
iface
,
...
...
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