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
7e941c83
Commit
7e941c83
authored
Nov 18, 2003
by
Phil Krylov
Committed by
Alexandre Julliard
Nov 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for returning caret positions in
GetCharacterPlacementW().
parent
1fa82e51
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
font.c
objects/font.c
+13
-2
No files found.
objects/font.c
View file @
7e941c83
...
...
@@ -2002,7 +2002,7 @@ GetCharacterPlacementA(HDC hdc, LPCSTR lpString, INT uCount,
*
* All flags except GCP_REORDER are not yet implemented.
* Reordering is not 100% complient to the Windows BiDi method.
* Caret positioning is not yet implemented.
* Caret positioning is not yet implemented
for BiDi
.
* Classes are not yet implemented.
*
*/
...
...
@@ -2030,8 +2030,9 @@ GetCharacterPlacementW(
lpResults
->
lpGlyphs
,
lpResults
->
nGlyphs
,
lpResults
->
nMaxFit
);
if
(
dwFlags
&
(
~
GCP_REORDER
))
FIXME
(
"flags 0x%08lx ignored
\n
"
,
dwFlags
);
if
(
lpResults
->
lpCaretPos
)
FIXME
(
"caret positions not implemented
\n
"
);
if
(
lpResults
->
lpClass
)
FIXME
(
"classes not implemented
\n
"
);
if
(
lpResults
->
lpCaretPos
&&
(
dwFlags
&
GCP_REORDER
))
FIXME
(
"Caret positions for complex scripts not implemented
\n
"
);
nSet
=
(
UINT
)
uCount
;
if
(
nSet
>
lpResults
->
nGlyphs
)
...
...
@@ -2069,6 +2070,16 @@ GetCharacterPlacementW(
}
}
if
(
lpResults
->
lpCaretPos
&&
!
(
dwFlags
&
GCP_REORDER
))
{
int
pos
=
0
;
lpResults
->
lpCaretPos
[
0
]
=
0
;
for
(
i
=
1
;
i
<
nSet
;
i
++
)
if
(
GetTextExtentPoint32W
(
hdc
,
&
(
lpString
[
i
-
1
]),
1
,
&
size
))
lpResults
->
lpCaretPos
[
i
]
=
(
pos
+=
size
.
cx
);
}
if
(
lpResults
->
lpGlyphs
)
GetGlyphIndicesW
(
hdc
,
lpString
,
nSet
,
lpResults
->
lpGlyphs
,
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