Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c292f486
Commit
c292f486
authored
Sep 19, 2005
by
Huw Davies
Committed by
Alexandre Julliard
Sep 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a problem with handling ETO_GLPYH_INDEX. Spotted by Rob
Shearman.
parent
0ceacf01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
font.c
dlls/gdi/font.c
+6
-7
No files found.
dlls/gdi/font.c
View file @
c292f486
...
...
@@ -1738,7 +1738,7 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
{
BOOL
ret
=
FALSE
;
LPWSTR
reordered_str
=
(
LPWSTR
)
str
;
const
WORD
*
glyphs
=
NULL
;
WORD
*
glyphs
=
NULL
;
UINT
align
=
GetTextAlign
(
hdc
);
POINT
pt
;
TEXTMETRICW
tm
;
...
...
@@ -1794,7 +1794,7 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
lprect
,
debugstr_wn
(
str
,
count
),
count
,
lpDx
);
if
(
flags
&
ETO_GLYPH_INDEX
)
glyphs
=
(
const
WORD
*
)
reordered_str
;
glyphs
=
reordered_str
;
if
(
lprect
)
TRACE
(
"rect: %ld,%ld - %ld,%ld
\n
"
,
lprect
->
left
,
lprect
->
top
,
lprect
->
right
,
...
...
@@ -1980,9 +1980,9 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
{
HFONT
orig_font
=
dc
->
hFont
,
cur_font
;
UINT
glyph
;
WORD
*
glyphs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
*
sizeof
(
WORD
));
INT
span
=
0
,
*
offsets
=
NULL
,
i
;
glyphs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
*
sizeof
(
WORD
));
for
(
i
=
0
;
i
<
count
;
i
++
)
{
WineEngGetLinkedHFont
(
dc
,
reordered_str
[
i
],
&
cur_font
,
&
glyph
);
...
...
@@ -2026,14 +2026,12 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
(
flags
&
~
ETO_OPAQUE
)
|
ETO_GLYPH_INDEX
,
&
rc
,
glyphs
,
span
,
deltas
?
deltas
+
count
-
span
:
NULL
);
SelectObject
(
hdc
,
orig_font
);
HeapFree
(
GetProcessHeap
(),
0
,
glyphs
);
HeapFree
(
GetProcessHeap
(),
0
,
offsets
);
}
}
}
else
{
WORD
*
glyphs
=
NULL
;
if
(
!
(
flags
&
ETO_GLYPH_INDEX
)
&&
dc
->
gdiFont
)
{
glyphs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
*
sizeof
(
WORD
));
...
...
@@ -2041,8 +2039,7 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
flags
|=
ETO_GLYPH_INDEX
;
}
ret
=
dc
->
funcs
->
pExtTextOut
(
dc
->
physDev
,
x
,
y
,
(
flags
&
~
ETO_OPAQUE
),
&
rc
,
(
flags
&
ETO_GLYPH_INDEX
)
?
glyphs
:
reordered_str
,
count
,
deltas
);
HeapFree
(
GetProcessHeap
(),
0
,
glyphs
);
glyphs
?
glyphs
:
reordered_str
,
count
,
deltas
);
}
if
(
lf
.
lfUnderline
||
lf
.
lfStrikeOut
)
...
...
@@ -2108,6 +2105,8 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
done:
HeapFree
(
GetProcessHeap
(),
0
,
deltas
);
if
(
glyphs
!=
reordered_str
)
HeapFree
(
GetProcessHeap
(),
0
,
glyphs
);
if
(
reordered_str
!=
str
)
HeapFree
(
GetProcessHeap
(),
0
,
reordered_str
);
...
...
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