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
c1607a04
Commit
c1607a04
authored
Oct 12, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Correct where the trailing flag transitions in the middle of a glyph.
parent
8a41d75e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
usp10.c
dlls/usp10/tests/usp10.c
+30
-0
usp10.c
dlls/usp10/usp10.c
+1
-1
No files found.
dlls/usp10/tests/usp10.c
View file @
c1607a04
...
...
@@ -1910,6 +1910,21 @@ static void test_ScriptXtoX(void)
else
/* win2k3 */
ok
(
piCP
==
10
,
"Negative iX should return piCP=10 not %d
\n
"
,
piCP
);
for
(
iX
=
0
;
iX
<=
7
;
iX
++
)
{
WORD
clust
=
0
;
INT
advance
=
16
;
hr
=
ScriptXtoCP
(
iX
,
1
,
1
,
&
clust
,
psva
,
&
advance
,
&
sa
,
&
piCP
,
&
piTrailing
);
ok
(
piCP
==
0
&&
piTrailing
==
0
,
"%i should return 0(%i) and 0(%i)
\n
"
,
iX
,
piCP
,
piTrailing
);
}
for
(
iX
=
8
;
iX
<
16
;
iX
++
)
{
WORD
clust
=
0
;
INT
advance
=
16
;
hr
=
ScriptXtoCP
(
iX
,
1
,
1
,
&
clust
,
psva
,
&
advance
,
&
sa
,
&
piCP
,
&
piTrailing
);
ok
(
piCP
==
0
&&
piTrailing
==
1
,
"%i should return 0(%i) and 1(%i)
\n
"
,
iX
,
piCP
,
piTrailing
);
}
sa
.
fRTL
=
TRUE
;
hr
=
ScriptXtoCP
(
-
1
,
10
,
10
,
pwLogClust_RTL
,
psva
,
piAdvance
,
&
sa
,
&
piCP
,
&
piTrailing
);
ok
(
hr
==
S_OK
,
"ScriptXtoCP should return S_OK not %08x
\n
"
,
hr
);
...
...
@@ -1924,6 +1939,21 @@ static void test_ScriptXtoX(void)
ok
(
piCP
==
-
1
,
"iX=%d should return piCP=-1 not %d
\n
"
,
iX
,
piCP
);
ok
(
piTrailing
==
1
,
"iX=%d should return piTrailing=1 not %d
\n
"
,
iX
,
piTrailing
);
for
(
iX
=
1
;
iX
<=
8
;
iX
++
)
{
WORD
clust
=
0
;
INT
advance
=
16
;
hr
=
ScriptXtoCP
(
iX
,
1
,
1
,
&
clust
,
psva
,
&
advance
,
&
sa
,
&
piCP
,
&
piTrailing
);
ok
(
piCP
==
0
&&
piTrailing
==
1
,
"%i should return 0(%i) and 1(%i)
\n
"
,
iX
,
piCP
,
piTrailing
);
}
for
(
iX
=
9
;
iX
<
16
;
iX
++
)
{
WORD
clust
=
0
;
INT
advance
=
16
;
hr
=
ScriptXtoCP
(
iX
,
1
,
1
,
&
clust
,
psva
,
&
advance
,
&
sa
,
&
piCP
,
&
piTrailing
);
ok
(
piCP
==
0
&&
piTrailing
==
0
,
"%i should return 0(%i) and 0(%i)
\n
"
,
iX
,
piCP
,
piTrailing
);
}
sa
.
fRTL
=
FALSE
;
test_item_ScriptXtoX
(
&
sa
,
10
,
10
,
offsets
,
pwLogClust
,
piAdvance
);
sa
.
fRTL
=
TRUE
;
...
...
dlls/usp10/usp10.c
View file @
c1607a04
...
...
@@ -1806,7 +1806,7 @@ HRESULT WINAPI ScriptXtoCP(int iX,
{
if
(
iPosX
>
iX
)
item
--
;
if
(
item
<
cChars
&&
((
iPosX
-
iLastPosX
)
/
2
.
0
)
+
iX
>
iPosX
)
if
(
item
<
cChars
&&
((
iPosX
-
iLastPosX
)
/
2
.
0
)
+
iX
>
=
iPosX
)
*
piTrailing
=
1
;
else
*
piTrailing
=
0
;
...
...
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