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
a5127f5f
Commit
a5127f5f
authored
Nov 03, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: Simple test to show that run analysis instances are not reused.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b6f1e74c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
font.c
dlls/dwrite/tests/font.c
+10
-1
No files found.
dlls/dwrite/tests/font.c
View file @
a5127f5f
...
...
@@ -3495,7 +3495,7 @@ static void test_CreateGlyphRunAnalysis(void)
DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC
,
};
IDWriteGlyphRunAnalysis
*
analysis
;
IDWriteGlyphRunAnalysis
*
analysis
,
*
analysis2
;
IDWriteFactory
*
factory
;
DWRITE_GLYPH_RUN
run
;
IDWriteFontFace
*
face
;
...
...
@@ -3783,6 +3783,15 @@ static void test_CreateGlyphRunAnalysis(void)
hr
=
IDWriteGlyphRunAnalysis_GetAlphaTextureBounds
(
analysis
,
DWRITE_TEXTURE_ALIASED_1x1
,
&
rect2
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
((
rect2
.
right
-
rect2
.
left
)
>
(
rect
.
right
-
rect
.
left
),
"got rect width %d
\n
"
,
rect2
.
right
-
rect2
.
left
);
/* instances are not reused for same runs */
hr
=
IDWriteFactory_CreateGlyphRunAnalysis
(
factory
,
&
run
,
1
.
0
,
&
m
,
DWRITE_RENDERING_MODE_ALIASED
,
DWRITE_MEASURING_MODE_NATURAL
,
0
.
0
,
0
.
0
,
&
analysis2
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
analysis2
!=
analysis
,
"got %p, previous instance %p
\n
"
,
analysis2
,
analysis
);
IDWriteGlyphRunAnalysis_Release
(
analysis2
);
IDWriteGlyphRunAnalysis_Release
(
analysis
);
IDWriteFontFace_Release
(
face
);
...
...
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