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
e19b2360
Commit
e19b2360
authored
Dec 09, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Don't trace char to glyph mappings.
parent
68efae16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
29 deletions
+3
-29
usp10.c
dlls/usp10/usp10.c
+3
-29
No files found.
dlls/usp10/usp10.c
View file @
e19b2360
...
...
@@ -1258,28 +1258,14 @@ HRESULT WINAPI ScriptShape(HDC hdc, SCRIPT_CACHE *psc, const WCHAR *pwcChars,
hfont
=
select_cached_font
(
psc
);
TRACE
(
"Before: "
);
for
(
cnt
=
0
;
cnt
<
cChars
;
cnt
++
)
TRACE
(
"%4x"
,
pwcChars
[
cnt
]);
TRACE
(
"
\n
"
);
if
(
!
psa
->
fNoGlyphIndex
)
{
/* Glyph translate */
if
(
!
(
GetGlyphIndicesW
(
get_cache_hdc
(
psc
),
pwcChars
,
cChars
,
pwOutGlyphs
,
0
)))
return
S_FALSE
;
TRACE
(
"After: "
);
for
(
cnt
=
0
;
cnt
<
cChars
;
cnt
++
)
{
TRACE
(
"%04x"
,
pwOutGlyphs
[
cnt
]);
}
TRACE
(
"
\n
"
);
}
else
{
TRACE
(
"After: "
);
for
(
cnt
=
0
;
cnt
<
cChars
;
cnt
++
)
{
/* no translate so set up */
pwOutGlyphs
[
cnt
]
=
pwcChars
[
cnt
];
/* copy in to out and */
TRACE
(
"%04x"
,
pwOutGlyphs
[
cnt
]);
}
TRACE
(
"
\n
"
);
}
/* Set up a valid SCRIPT_VISATTR and LogClust for each char in this run */
...
...
@@ -1396,7 +1382,6 @@ HRESULT WINAPI ScriptPlace(HDC hdc, SCRIPT_CACHE *psc, const WORD *pwGlyphs,
HRESULT
WINAPI
ScriptGetCMap
(
HDC
hdc
,
SCRIPT_CACHE
*
psc
,
const
WCHAR
*
pwcInChars
,
int
cChars
,
DWORD
dwFlags
,
WORD
*
pwOutGlyphs
)
{
int
cnt
;
HRESULT
hr
;
HFONT
hfont
;
...
...
@@ -1406,22 +1391,11 @@ HRESULT WINAPI ScriptGetCMap(HDC hdc, SCRIPT_CACHE *psc, const WCHAR *pwcInChars
if
((
hr
=
get_script_cache
(
hdc
,
psc
)))
return
hr
;
hfont
=
select_cached_font
(
psc
);
TRACE
(
"Before: "
);
for
(
cnt
=
0
;
cnt
<
cChars
;
cnt
++
)
TRACE
(
"%4x"
,
pwcInChars
[
cnt
]);
TRACE
(
"
\n
"
);
GetGlyphIndicesW
(
get_cache_hdc
(
psc
),
pwcInChars
,
cChars
,
pwOutGlyphs
,
0
);
TRACE
(
"After: "
);
for
(
cnt
=
0
;
cnt
<
cChars
;
cnt
++
)
{
TRACE
(
"%04x"
,
pwOutGlyphs
[
cnt
]);
}
TRACE
(
"
\n
"
);
if
(
GetGlyphIndicesW
(
get_cache_hdc
(
psc
),
pwcInChars
,
cChars
,
pwOutGlyphs
,
0
)
==
GDI_ERROR
)
hr
=
S_FALSE
;
unselect_cached_font
(
psc
,
hfont
);
return
S_OK
;
return
hr
;
}
/***********************************************************************
...
...
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