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
491123e1
Commit
491123e1
authored
Dec 05, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Support getting character codes instead of glyphs in ExtTextOut for the path driver.
parent
78626cdb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
path.c
dlls/gdi32/path.c
+4
-6
No files found.
dlls/gdi32/path.c
View file @
491123e1
...
...
@@ -1511,10 +1511,11 @@ static BOOL pathdrv_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags, const REC
LPCWSTR
str
,
UINT
count
,
const
INT
*
dx
)
{
struct
path_physdev
*
physdev
=
get_path_physdev
(
dev
);
unsigned
int
idx
;
unsigned
int
idx
,
ggo_flags
=
GGO_NATIVE
;
POINT
offset
=
{
0
,
0
};
if
(
!
count
)
return
TRUE
;
if
(
flags
&
ETO_GLYPH_INDEX
)
ggo_flags
|=
GGO_GLYPH_INDEX
;
for
(
idx
=
0
;
idx
<
count
;
idx
++
)
{
...
...
@@ -1523,8 +1524,7 @@ static BOOL pathdrv_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags, const REC
DWORD
dwSize
;
void
*
outline
;
dwSize
=
GetGlyphOutlineW
(
dev
->
hdc
,
str
[
idx
],
GGO_GLYPH_INDEX
|
GGO_NATIVE
,
&
gm
,
0
,
NULL
,
&
identity
);
dwSize
=
GetGlyphOutlineW
(
dev
->
hdc
,
str
[
idx
],
ggo_flags
,
&
gm
,
0
,
NULL
,
&
identity
);
if
(
dwSize
==
GDI_ERROR
)
return
FALSE
;
/* add outline only if char is printable */
...
...
@@ -1533,9 +1533,7 @@ static BOOL pathdrv_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags, const REC
outline
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwSize
);
if
(
!
outline
)
return
FALSE
;
GetGlyphOutlineW
(
dev
->
hdc
,
str
[
idx
],
GGO_GLYPH_INDEX
|
GGO_NATIVE
,
&
gm
,
dwSize
,
outline
,
&
identity
);
GetGlyphOutlineW
(
dev
->
hdc
,
str
[
idx
],
ggo_flags
,
&
gm
,
dwSize
,
outline
,
&
identity
);
PATH_add_outline
(
physdev
,
x
+
offset
.
x
,
y
+
offset
.
y
,
outline
,
dwSize
);
HeapFree
(
GetProcessHeap
(),
0
,
outline
);
...
...
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