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
a07fbb93
Commit
a07fbb93
authored
Oct 17, 2023
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1/tests: Use D2D1_INTERPOLATION_MODE constants in DrawImage calls.
parent
6289a584
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
d2d1.c
dlls/d2d1/tests/d2d1.c
+9
-9
No files found.
dlls/d2d1/tests/d2d1.c
View file @
a07fbb93
...
@@ -2266,41 +2266,41 @@ static void test_bitmap_brush(BOOL d3d11)
...
@@ -2266,41 +2266,41 @@ static void test_bitmap_brush(BOOL d3d11)
/* Crash on Windows 7+ */
/* Crash on Windows 7+ */
if
(
0
)
if
(
0
)
{
{
ID2D1DeviceContext_DrawImage
(
context
,
NULL
,
NULL
,
NULL
,
D2D1_
BITMAP_
INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
ID2D1DeviceContext_DrawImage
(
context
,
NULL
,
NULL
,
NULL
,
D2D1_INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
}
}
ID2D1DeviceContext_DrawImage
(
context
,
image
,
NULL
,
NULL
,
D2D1_
BITMAP_
INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
ID2D1DeviceContext_DrawImage
(
context
,
image
,
NULL
,
NULL
,
D2D1_INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
set_rect
(
&
src_rect
,
0
.
0
f
,
0
.
0
f
,
image_size
.
width
,
image_size
.
height
);
set_rect
(
&
src_rect
,
0
.
0
f
,
0
.
0
f
,
image_size
.
width
,
image_size
.
height
);
ID2D1DeviceContext_DrawImage
(
context
,
image
,
NULL
,
&
src_rect
,
D2D1_
BITMAP_
INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
ID2D1DeviceContext_DrawImage
(
context
,
image
,
NULL
,
&
src_rect
,
D2D1_INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
offset
.
x
=
-
1
;
offset
.
x
=
-
1
;
offset
.
y
=
-
1
;
offset
.
y
=
-
1
;
ID2D1DeviceContext_DrawImage
(
context
,
image
,
&
offset
,
NULL
,
D2D1_
BITMAP_
INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
ID2D1DeviceContext_DrawImage
(
context
,
image
,
&
offset
,
NULL
,
D2D1_INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
offset
.
x
=
image_size
.
width
*
2
;
offset
.
x
=
image_size
.
width
*
2
;
offset
.
y
=
image_size
.
height
;
offset
.
y
=
image_size
.
height
;
ID2D1DeviceContext_DrawImage
(
context
,
image
,
&
offset
,
NULL
,
D2D1_
BITMAP_
INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
ID2D1DeviceContext_DrawImage
(
context
,
image
,
&
offset
,
NULL
,
D2D1_INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
offset
.
x
=
image_size
.
width
*
3
;
offset
.
x
=
image_size
.
width
*
3
;
set_rect
(
&
src_rect
,
image_size
.
width
/
2
,
image_size
.
height
/
2
,
image_size
.
width
,
image_size
.
height
);
set_rect
(
&
src_rect
,
image_size
.
width
/
2
,
image_size
.
height
/
2
,
image_size
.
width
,
image_size
.
height
);
ID2D1DeviceContext_DrawImage
(
context
,
image
,
&
offset
,
&
src_rect
,
D2D1_
BITMAP_
INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
ID2D1DeviceContext_DrawImage
(
context
,
image
,
&
offset
,
&
src_rect
,
D2D1_INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
offset
.
x
=
image_size
.
width
*
4
;
offset
.
x
=
image_size
.
width
*
4
;
set_rect
(
&
src_rect
,
0
.
0
f
,
0
.
0
f
,
image_size
.
width
*
2
,
image_size
.
height
*
2
);
set_rect
(
&
src_rect
,
0
.
0
f
,
0
.
0
f
,
image_size
.
width
*
2
,
image_size
.
height
*
2
);
ID2D1DeviceContext_DrawImage
(
context
,
image
,
&
offset
,
&
src_rect
,
D2D1_
BITMAP_
INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
ID2D1DeviceContext_DrawImage
(
context
,
image
,
&
offset
,
&
src_rect
,
D2D1_INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
offset
.
x
=
image_size
.
width
*
5
;
offset
.
x
=
image_size
.
width
*
5
;
set_rect
(
&
src_rect
,
image_size
.
width
,
image_size
.
height
,
0
.
0
f
,
0
.
0
f
);
set_rect
(
&
src_rect
,
image_size
.
width
,
image_size
.
height
,
0
.
0
f
,
0
.
0
f
);
ID2D1DeviceContext_DrawImage
(
context
,
image
,
&
offset
,
&
src_rect
,
D2D1_
BITMAP_
INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
ID2D1DeviceContext_DrawImage
(
context
,
image
,
&
offset
,
&
src_rect
,
D2D1_INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
hr
=
ID2D1RenderTarget_EndDraw
(
rt
,
NULL
,
NULL
);
hr
=
ID2D1RenderTarget_EndDraw
(
rt
,
NULL
,
NULL
);
...
@@ -2312,7 +2312,7 @@ static void test_bitmap_brush(BOOL d3d11)
...
@@ -2312,7 +2312,7 @@ static void test_bitmap_brush(BOOL d3d11)
offset
.
x
=
image_size
.
width
*
6
;
offset
.
x
=
image_size
.
width
*
6
;
set_rect
(
&
src_rect
,
1
.
0
f
,
0
.
0
f
,
1
.
0
f
,
image_size
.
height
);
set_rect
(
&
src_rect
,
1
.
0
f
,
0
.
0
f
,
1
.
0
f
,
image_size
.
height
);
ID2D1DeviceContext_DrawImage
(
context
,
image
,
&
offset
,
&
src_rect
,
D2D1_
BITMAP_
INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
ID2D1DeviceContext_DrawImage
(
context
,
image
,
&
offset
,
&
src_rect
,
D2D1_INTERPOLATION_MODE_NEAREST_NEIGHBOR
,
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
D2D1_COMPOSITE_MODE_SOURCE_OVER
);
hr
=
ID2D1RenderTarget_EndDraw
(
rt
,
NULL
,
NULL
);
hr
=
ID2D1RenderTarget_EndDraw
(
rt
,
NULL
,
NULL
);
...
...
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