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
0a02f346
Commit
0a02f346
authored
Apr 27, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement d2d_bitmap_brush_SetExtendModeY().
parent
b940f2fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
brush.c
dlls/d2d1/brush.c
+13
-2
d2d1_private.h
dlls/d2d1/d2d1_private.h
+1
-0
No files found.
dlls/d2d1/brush.c
View file @
0a02f346
...
...
@@ -569,7 +569,16 @@ static void STDMETHODCALLTYPE d2d_bitmap_brush_SetExtendModeX(ID2D1BitmapBrush *
static
void
STDMETHODCALLTYPE
d2d_bitmap_brush_SetExtendModeY
(
ID2D1BitmapBrush
*
iface
,
D2D1_EXTEND_MODE
mode
)
{
FIXME
(
"iface %p, mode %#x stub!
\n
"
,
iface
,
mode
);
struct
d2d_brush
*
brush
=
impl_from_ID2D1BitmapBrush
(
iface
);
TRACE
(
"iface %p, mode %#x.
\n
"
,
iface
,
mode
);
brush
->
u
.
bitmap
.
extend_mode_y
=
mode
;
if
(
brush
->
u
.
bitmap
.
sampler_state
)
{
ID3D10SamplerState_Release
(
brush
->
u
.
bitmap
.
sampler_state
);
brush
->
u
.
bitmap
.
sampler_state
=
NULL
;
}
}
static
void
STDMETHODCALLTYPE
d2d_bitmap_brush_SetInterpolationMode
(
ID2D1BitmapBrush
*
iface
,
...
...
@@ -659,11 +668,13 @@ HRESULT d2d_bitmap_brush_init(struct d2d_brush *brush, struct d2d_d3d_render_tar
if
(
bitmap_brush_desc
)
{
brush
->
u
.
bitmap
.
extend_mode_x
=
bitmap_brush_desc
->
extendModeX
;
brush
->
u
.
bitmap
.
extend_mode_y
=
bitmap_brush_desc
->
extendModeY
;
brush
->
u
.
bitmap
.
interpolation_mode
=
bitmap_brush_desc
->
interpolationMode
;
}
else
{
brush
->
u
.
bitmap
.
extend_mode_x
=
D2D1_EXTEND_MODE_CLAMP
;
brush
->
u
.
bitmap
.
extend_mode_y
=
D2D1_EXTEND_MODE_CLAMP
;
brush
->
u
.
bitmap
.
interpolation_mode
=
D2D1_BITMAP_INTERPOLATION_MODE_LINEAR
;
}
...
...
@@ -712,7 +723,7 @@ void d2d_brush_bind_resources(struct d2d_brush *brush, ID3D10Device *device)
else
sampler_desc
.
Filter
=
D3D10_FILTER_MIN_MAG_MIP_LINEAR
;
sampler_desc
.
AddressU
=
texture_addres_mode_from_extend_mode
(
brush
->
u
.
bitmap
.
extend_mode_x
);
sampler_desc
.
AddressV
=
D3D10_TEXTURE_ADDRESS_CLAMP
;
sampler_desc
.
AddressV
=
texture_addres_mode_from_extend_mode
(
brush
->
u
.
bitmap
.
extend_mode_y
)
;
sampler_desc
.
AddressW
=
D3D10_TEXTURE_ADDRESS_CLAMP
;
sampler_desc
.
MipLODBias
=
0
.
0
f
;
sampler_desc
.
MaxAnisotropy
=
0
;
...
...
dlls/d2d1/d2d1_private.h
View file @
0a02f346
...
...
@@ -126,6 +126,7 @@ struct d2d_brush
{
struct
d2d_bitmap
*
bitmap
;
D2D1_EXTEND_MODE
extend_mode_x
;
D2D1_EXTEND_MODE
extend_mode_y
;
D2D1_BITMAP_INTERPOLATION_MODE
interpolation_mode
;
ID3D10SamplerState
*
sampler_state
;
}
bitmap
;
...
...
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