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
44589c6f
Commit
44589c6f
authored
Feb 03, 2009
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: The MAT2 parameter of GetGlyphOutline is mandatory.
parent
ba660a47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
gdi16.c
dlls/gdi32/gdi16.c
+9
-6
path.c
dlls/gdi32/path.c
+3
-2
No files found.
dlls/gdi32/gdi16.c
View file @
44589c6f
...
...
@@ -1983,12 +1983,15 @@ DWORD WINAPI GetGlyphOutline16( HDC16 hdc, UINT16 uChar, UINT16 fuFormat,
GLYPHMETRICS
gm32
;
ret
=
GetGlyphOutlineA
(
HDC_32
(
hdc
),
uChar
,
fuFormat
,
&
gm32
,
cbBuffer
,
lpBuffer
,
lpmat2
);
lpgm
->
gmBlackBoxX
=
gm32
.
gmBlackBoxX
;
lpgm
->
gmBlackBoxY
=
gm32
.
gmBlackBoxY
;
lpgm
->
gmptGlyphOrigin
.
x
=
gm32
.
gmptGlyphOrigin
.
x
;
lpgm
->
gmptGlyphOrigin
.
y
=
gm32
.
gmptGlyphOrigin
.
y
;
lpgm
->
gmCellIncX
=
gm32
.
gmCellIncX
;
lpgm
->
gmCellIncY
=
gm32
.
gmCellIncY
;
if
(
ret
&&
ret
!=
GDI_ERROR
)
{
lpgm
->
gmBlackBoxX
=
gm32
.
gmBlackBoxX
;
lpgm
->
gmBlackBoxY
=
gm32
.
gmBlackBoxY
;
lpgm
->
gmptGlyphOrigin
.
x
=
gm32
.
gmptGlyphOrigin
.
x
;
lpgm
->
gmptGlyphOrigin
.
y
=
gm32
.
gmptGlyphOrigin
.
y
;
lpgm
->
gmCellIncX
=
gm32
.
gmCellIncX
;
lpgm
->
gmCellIncY
=
gm32
.
gmCellIncY
;
}
return
ret
;
}
...
...
dlls/gdi32/path.c
View file @
44589c6f
...
...
@@ -1454,17 +1454,18 @@ BOOL PATH_ExtTextOut(DC *dc, INT x, INT y, UINT flags, const RECT *lprc,
for
(
idx
=
0
;
idx
<
count
;
idx
++
)
{
static
const
MAT2
identity
=
{
{
0
,
1
},{
0
,
0
},{
0
,
0
},{
0
,
1
}
};
GLYPHMETRICS
gm
;
DWORD
dwSize
;
void
*
outline
;
dwSize
=
GetGlyphOutlineW
(
hdc
,
str
[
idx
],
GGO_GLYPH_INDEX
|
GGO_NATIVE
,
&
gm
,
0
,
NULL
,
NULL
);
dwSize
=
GetGlyphOutlineW
(
hdc
,
str
[
idx
],
GGO_GLYPH_INDEX
|
GGO_NATIVE
,
&
gm
,
0
,
NULL
,
&
identity
);
if
(
!
dwSize
)
return
FALSE
;
outline
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwSize
);
if
(
!
outline
)
return
FALSE
;
GetGlyphOutlineW
(
hdc
,
str
[
idx
],
GGO_GLYPH_INDEX
|
GGO_NATIVE
,
&
gm
,
dwSize
,
outline
,
NULL
);
GetGlyphOutlineW
(
hdc
,
str
[
idx
],
GGO_GLYPH_INDEX
|
GGO_NATIVE
,
&
gm
,
dwSize
,
outline
,
&
identity
);
PATH_add_outline
(
dc
,
org
.
x
+
x
+
xoff
,
org
.
x
+
y
+
yoff
,
outline
,
dwSize
);
...
...
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